diff options
-rw-r--r-- | runtime/probes/test4/test4.c | 6 | ||||
-rw-r--r-- | runtime/probes/where_func/kprobe_where_funct.c | 2 |
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); } |