summaryrefslogtreecommitdiffstats
path: root/session.h
diff options
context:
space:
mode:
authordsmith <dsmith>2006-08-28 17:59:50 +0000
committerdsmith <dsmith>2006-08-28 17:59:50 +0000
commitdc38c0ae43f0c98b203866eeeb88070d32db2c8d (patch)
tree830f0e353042f693a1fbe1e1bd5b895010e46673 /session.h
parent30da8acfcbaef6bf88d806b8ded4195b88df7f39 (diff)
downloadsystemtap-steved-dc38c0ae43f0c98b203866eeeb88070d32db2c8d.tar.gz
systemtap-steved-dc38c0ae43f0c98b203866eeeb88070d32db2c8d.tar.xz
systemtap-steved-dc38c0ae43f0c98b203866eeeb88070d32db2c8d.zip
2006-08-28 David Smith <dsmith@redhat.com>
* translate.cxx: Added inclusion of session.h. (translate_pass): Instead of asking each probe to emit itself, we ask the session's probes member variable to emit all the probes. * tapsets.cxx: Added inclusion of session.h. Added a register_probe member function to all derived_probe based classes. Added a derived_probe_group derived class for all probe types: (be_derived_probe_group): New class. (never_derived_probe_group): New class. (dwarf_derived_probe_group): New class. (timer_derived_probe_group): New class. (profile_derived_probe_group): New class. (mark_derived_probe_group): New class. (hrtimer_derived_probe_group): New class (derived_probe_group_container): New class. * elaborate.h: Removed inclusion of session.h since session.h now includes elaborate.h. (derived_probe): Added register_probe member function. (derived_probe_group): Added class definition. This is the base class of all of the derived probe groups - dwarf, timer, etc. (derived_probe_group_container): Added class definition. An instance of this class will be stored in the session and contain all the other probe groups. * elaborate.cxx (derived_probe_group::register_probe): Added derived_probe_group::register_probe stubs. (alias_derived_probe::register_probe): Added register_probe member function. (semantic_pass_symbols): After deriving a probe, the probes now register themselves with the session. * session.h: Includes elaborate.h to get derived_probe_group_container definition. systemtap_session class 'probes' member variable switched from a vector of derived probes to a derived_probe_group_container. * buildrun.cxx: Added inclusion of session.h since it was removed from elaborate.h. * main.cxx: Added inclusion of session.h since it was removed from elaborate.h. * parse.h: Added forward struct declarations. * staptree.h: Removed inclusion of session.h.
Diffstat (limited to 'session.h')
-rw-r--r--session.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/session.h b/session.h
index b9f86991..50e06437 100644
--- a/session.h
+++ b/session.h
@@ -9,6 +9,7 @@
#ifndef SESSION_H
#define SESSION_H
+#include "elaborate.h"
#include <string>
#include <vector>
#include <iostream>
@@ -21,7 +22,7 @@ struct match_node;
struct stapfile;
struct vardecl;
struct functiondecl;
-struct derived_probe;
+struct derived_probe_group_container;
struct embeddedcode;
struct translator_output;
struct unparser;
@@ -94,7 +95,7 @@ struct systemtap_session
std::vector<stapfile*> files;
std::vector<vardecl*> globals;
std::vector<functiondecl*> functions;
- std::vector<derived_probe*> probes;
+ derived_probe_group_container probes;
std::vector<embeddedcode*> embeds;
std::map<std::string, statistic_decl> stat_decls;
// XXX: vector<*> instead please?