diff options
author | Josh Stone <jistone@redhat.com> | 2010-03-25 19:32:46 -0700 |
---|---|---|
committer | Josh Stone <jistone@redhat.com> | 2010-03-25 19:32:46 -0700 |
commit | 9ea68eb97aaf04104b18d5650a6321a4c7d3ad8d (patch) | |
tree | 7a29a0e238a91095297c7b4d75110dc940b07630 /staptree.h | |
parent | 649260f387b644f8cfafe5e992d6c8890c906dd5 (diff) | |
download | systemtap-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); }; |