summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2010-03-25 19:32:46 -0700
committerJosh Stone <jistone@redhat.com>2010-03-25 19:32:46 -0700
commit9ea68eb97aaf04104b18d5650a6321a4c7d3ad8d (patch)
tree7a29a0e238a91095297c7b4d75110dc940b07630 /staptree.h
parent649260f387b644f8cfafe5e992d6c8890c906dd5 (diff)
downloadsystemtap-steved-9ea68eb97aaf04104b18d5650a6321a4c7d3ad8d.tar.gz
systemtap-steved-9ea68eb97aaf04104b18d5650a6321a4c7d3ad8d.tar.xz
systemtap-steved-9ea68eb97aaf04104b18d5650a6321a4c7d3ad8d.zip
Print probepoint addresses in hex
* staptree.h (literal_number): Add a bool "print_hex". * staptree.cxx (literal_number::print): Switch to hex if needed. * tapsets.cxx (dwarf_derived_probe::dwarf_derived_probe): Write the statement number component with a hex literal_number. (sdt_query::convert_location): Ditto (kprobe_derived_probe::kprobe_derived_probe): Ditto. (hwbkpt_derived_probe::hwbkpt_derived_probe): Ditto for data addr.
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/staptree.h b/staptree.h
index 284b4ea1..895c6667 100644
--- a/staptree.h
+++ b/staptree.h
@@ -92,7 +92,8 @@ struct literal_string: public literal
struct literal_number: public literal
{
int64_t value;
- literal_number (int64_t v);
+ bool print_hex;
+ literal_number (int64_t v, bool hex=false);
void print (std::ostream& o) const;
void visit (visitor* u);
};