summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhunt <hunt>2005-05-31 20:19:47 +0000
committerhunt <hunt>2005-05-31 20:19:47 +0000
commitf541970f10c03b788141b359689e2a847b7684c4 (patch)
treea586bfd1ed2ccb9d6895d9745c2af31570c12f76
parenta7b49c5a613f185067ed07f7bfcbb02d14a5ed1f (diff)
downloadsystemtap-steved-f541970f10c03b788141b359689e2a847b7684c4.tar.gz
systemtap-steved-f541970f10c03b788141b359689e2a847b7684c4.tar.xz
systemtap-steved-f541970f10c03b788141b359689e2a847b7684c4.zip
Updated to use new _stp_map_print().
-rw-r--r--runtime/probes/test4/test4.c6
-rw-r--r--runtime/probes/where_func/kprobe_where_funct.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/probes/test4/test4.c b/runtime/probes/test4/test4.c
index f4b6c9b0..f89cc6b9 100644
--- a/runtime/probes/test4/test4.c
+++ b/runtime/probes/test4/test4.c
@@ -92,9 +92,9 @@ static void probe_exit (void)
{
_stp_unregister_jprobes (stp_probes, MAX_STP_ROUTINE);
- _stp_map_print (opens,"opens");
- _stp_map_print (reads,"reads");
- _stp_map_print (writes,"writes");
+ _stp_map_print (opens,"%d opens by process \"%1s\"");
+ _stp_map_print (reads,"reads by process \"%1s\": %C. Total bytes=%S. Average: %A\n%H");
+ _stp_map_print (writes,"writes by process \"%1s\": %C. Total bytes=%S. Average: %A\n%H");
_stp_map_del (opens);
_stp_map_del (reads);
diff --git a/runtime/probes/where_func/kprobe_where_funct.c b/runtime/probes/where_func/kprobe_where_funct.c
index d75d70f9..a325693a 100644
--- a/runtime/probes/where_func/kprobe_where_funct.c
+++ b/runtime/probes/where_func/kprobe_where_funct.c
@@ -79,7 +79,7 @@ static void probe_exit (void)
{
_stp_unregister_kprobes (kp, MAX_KPROBES);
- _stp_map_print (funct_locations, "locations");
+ _stp_map_print (funct_locations, "Count: %d\tCaller: %1P");
_stp_map_del(funct_locations);
}