diff options
author | David Smith <dsmith@redhat.com> | 2008-04-11 09:52:55 -0500 |
---|---|---|
committer | David Smith <dsmith@redhat.com> | 2008-04-11 09:52:55 -0500 |
commit | 342d3f9693ea4eead68ba8ff841132a7adc7776b (patch) | |
tree | ff28366732005e38c4cdd9db71196204c8a255d2 /elaborate.h | |
parent | 0f3f43c992867e6b1a963872b83ea1dcbf7ddd96 (diff) | |
download | systemtap-steved-342d3f9693ea4eead68ba8ff841132a7adc7776b.tar.gz systemtap-steved-342d3f9693ea4eead68ba8ff841132a7adc7776b.tar.xz systemtap-steved-342d3f9693ea4eead68ba8ff841132a7adc7776b.zip |
2008-04-11 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 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.
(dwarf_derived_probe_group::emit_module_header): Moved kprobes
kernel check from emit_module_decls() to here.
(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 30bf5bce..f53f3870 100644 --- a/elaborate.h +++ b/elaborate.h @@ -150,6 +150,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 |