diff options
author | Josh Stone <jistone@redhat.com> | 2009-05-15 18:59:16 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2009-05-15 18:59:16 -0700 |
commit | 4627ed58020162dc8c0798dcfa24d3756eee5ccf (patch) | |
tree | 50488300045c6aacea149a4042a4ebe4927aaa1a /tapsets.cxx | |
parent | 62f6ae64f9d1269e07d320e9a168ee737b2cf851 (diff) | |
download | systemtap-steved-4627ed58020162dc8c0798dcfa24d3756eee5ccf.tar.gz systemtap-steved-4627ed58020162dc8c0798dcfa24d3756eee5ccf.tar.xz systemtap-steved-4627ed58020162dc8c0798dcfa24d3756eee5ccf.zip |
Make all tapsets' TOK_FOO constant
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 1728ec9e..a9ef2487 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -246,19 +246,19 @@ common_probe_entryfn_epilogue (translator_output* o, // Dwarf derived probes. "We apologize for the inconvience." // ------------------------------------------------------------------------ -static string TOK_KERNEL("kernel"); -static string TOK_MODULE("module"); -static string TOK_FUNCTION("function"); -static string TOK_INLINE("inline"); -static string TOK_CALL("call"); -static string TOK_RETURN("return"); -static string TOK_MAXACTIVE("maxactive"); -static string TOK_STATEMENT("statement"); -static string TOK_ABSOLUTE("absolute"); -static string TOK_PROCESS("process"); -static string TOK_MARK("mark"); -static string TOK_TRACE("trace"); -static string TOK_LABEL("label"); +static const string TOK_KERNEL("kernel"); +static const string TOK_MODULE("module"); +static const string TOK_FUNCTION("function"); +static const string TOK_INLINE("inline"); +static const string TOK_CALL("call"); +static const string TOK_RETURN("return"); +static const string TOK_MAXACTIVE("maxactive"); +static const string TOK_STATEMENT("statement"); +static const string TOK_ABSOLUTE("absolute"); +static const string TOK_PROCESS("process"); +static const string TOK_MARK("mark"); +static const string TOK_TRACE("trace"); +static const string TOK_LABEL("label"); static int query_cu (Dwarf_Die * cudie, void * arg); @@ -4461,7 +4461,7 @@ uprobe_derived_probe_group::emit_module_exit (systemtap_session& s) // Kprobe derived probes // ------------------------------------------------------------------------ -static string TOK_KPROBE("kprobe"); +static const string TOK_KPROBE("kprobe"); struct kprobe_derived_probe: public derived_probe { |