diff options
author | David Smith <dsmith@redhat.com> | 2008-04-10 15:00:08 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-04-10 15:00:08 -0500 |
commit | 6d05e34f799ac14ccd7f0adab39986b8b6d89939 (patch) | |
tree | 163d3bed3549bc1a3a8b06609d57fe0e7445b41e /elaborate.h | |
parent | a291e87b97bd7eefcd63cc63f37c14ccdae1a268 (diff) | |
download | systemtap-steved-6d05e34f799ac14ccd7f0adab39986b8b6d89939.tar.gz systemtap-steved-6d05e34f799ac14ccd7f0adab39986b8b6d89939.tar.xz systemtap-steved-6d05e34f799ac14ccd7f0adab39986b8b6d89939.zip |
2008-04-10 David Smith <dsmith@redhat.com>
* elaborate.h (struct derived_probe_group): Added
emit_module_header virtual function.
* translate.cxx (c_unparser::emit_common_header): Calls each probe
group's emit_module_header function.
(translate_pass): Moved inclusion of linux/marker.h to
mark_derived_probe_group::emit_module_header().
* tapsets.cxx (struct be_derived_probe_group): Added empty
emit_module_header function.
(struct dwarf_derived_probe_group): Ditto.
(struct timer_derived_probe_group): Ditto.
(struct profile_derived_probe_group): Ditto.
(struct procfs_derived_probe_group): Ditto.
(struct hrtimer_derived_probe_group): Ditto.
(struct perfmon_derived_probe_group): Ditto.
(uprobe_derived_probe_group::emit_module_header): Moved uprobe
kernel check from emit_module_decls() to here.
(uprobe_derived_probe_group::emit_module_decls): Moved uprobe
kernel check to emit_module_header().
(mark_derived_probe_group::emit_module_header): Moved marker
kernel check from emit_module_decls and translate_pass() to here.
(uprobe_derived_probe_group::emit_module_decls): Moved marker
kernel check to emit_module_header().
Diffstat (limited to 'elaborate.h')
-rw-r--r-- | elaborate.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/elaborate.h b/elaborate.h index fc8fbbcb..1a029e3c 100644 --- a/elaborate.h +++ b/elaborate.h @@ -148,6 +148,12 @@ struct derived_probe_group { virtual ~derived_probe_group () {} + virtual void emit_module_header (systemtap_session& s) = 0; + // The _header-generated code may assume that only basic includes + // have been generated. _header is called near the start of the + // code generation process, before the context, embedded-C code, + // etc. are generated. + virtual void emit_module_decls (systemtap_session& s) = 0; // The _decls-generated code may assume that declarations such as // the context, embedded-C code, function and probe handler bodies |