summaryrefslogtreecommitdiffstats
path: root/runtime/probes/scf/scf.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-11-09 01:00:40 +0000
committerhunt <hunt>2005-11-09 01:00:40 +0000
commitfa3f3d4d2e3d173750685ff89a0f53f8c8a2310c (patch)
tree5113b61b9b6437d65cd912199dbf560e29de080d /runtime/probes/scf/scf.c
parente8fd2f2631965df59fdd3e263aae9ef3721306da (diff)
downloadsystemtap-steved-fa3f3d4d2e3d173750685ff89a0f53f8c8a2310c.tar.gz
systemtap-steved-fa3f3d4d2e3d173750685ff89a0f53f8c8a2310c.tar.xz
systemtap-steved-fa3f3d4d2e3d173750685ff89a0f53f8c8a2310c.zip
2005-11-08 Martin Hunt <hunt@redhat.com>
* shellsnoop/shellsnoop.c: Updated to use new map API. * where_func/kprobe_where_funct.c: Ditto. * os_timer/os_timer.c (probe_start): Ditto. * test4/test4.c: Ditto. * scf/scf.c: Ditto.
Diffstat (limited to 'runtime/probes/scf/scf.c')
-rw-r--r--runtime/probes/scf/scf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/runtime/probes/scf/scf.c b/runtime/probes/scf/scf.c
index b8e38318..0e29df43 100644
--- a/runtime/probes/scf/scf.c
+++ b/runtime/probes/scf/scf.c
@@ -2,9 +2,10 @@
#include "runtime.h"
#define MAP_STRING_LENGTH 512
-#define NEED_INT64_VALS
+
+#define VALUE_TYPE INT64
#define KEY1_TYPE STRING
-#include "map-keys.c"
+#include "map-gen.c"
#include "map.c"
#include "sym.c"
@@ -20,9 +21,8 @@ MAP map1;
int inst_smp_call_function (struct kprobe *p, struct pt_regs *regs)
{
String str = _stp_string_init (0);
- _stp_stack_sprint (str,regs,1);
- _stp_map_key_str(map1, _stp_string_ptr(str));
- _stp_map_add_int64 (map1, 1);
+ _stp_stack_sprint (str, regs, 1);
+ _stp_map_add_si (map1, _stp_string_ptr(str), 1);
return 0;
}
@@ -37,7 +37,7 @@ static struct kprobe stp_probes[] = {
int probe_start(void)
{
- map1 = _stp_map_new_str (100, INT64);
+ map1 = _stp_map_new_si (100);
return _stp_register_kprobes (stp_probes, MAX_STP_ROUTINE);
}