summaryrefslogtreecommitdiffstats
path: root/runtime/probes/scf
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/probes/scf')
-rw-r--r--runtime/probes/scf/Makefile21
-rwxr-xr-xruntime/probes/scf/build2
-rw-r--r--runtime/probes/scf/scf.c6
-rw-r--r--runtime/probes/scf/targets1
4 files changed, 5 insertions, 25 deletions
diff --git a/runtime/probes/scf/Makefile b/runtime/probes/scf/Makefile
deleted file mode 100644
index 3f80332b..00000000
--- a/runtime/probes/scf/Makefile
+++ /dev/null
@@ -1,21 +0,0 @@
-# Makefile
-
-PWD := $(shell pwd)
-RT := $(PWD)/../..
-KVERSION := $(shell uname -r)
-KDIR := /lib/modules/$(KVERSION)/build include
-
-KALLSYMS_LOOKUP_NAME := 0x$(firstword $(shell grep " kallsyms_lookup_name" /boot/System.map-$(KVERSION)))
-KALLSYMS_LOOKUP := 0x$(firstword $(shell grep " kallsyms_lookup$$" /boot/System.map-$(KVERSION)))
-KTA := 0x$(firstword $(shell grep "__kernel_text_address" /boot/System.map-$(KVERSION)))
-
-EXTRA_CFLAGS := -I $(RT) -I $(RT)/relayfs -D KALLSYMS_LOOKUP_NAME=$(KALLSYMS_LOOKUP_NAME) -D KALLSYMS_LOOKUP=$(KALLSYMS_LOOKUP) -DKTA=$(KTA)
-
-obj-m := scf.o
-
-
-default:
- $(MAKE) V=1 -C $(KDIR) M=$(PWD) RT=$(RT) modules
-
-clean:
- /bin/rm -rf *.o *.ko *~ *.mod.c .*.cmd .tmp_versions
diff --git a/runtime/probes/scf/build b/runtime/probes/scf/build
new file mode 100755
index 00000000..f3e83244
--- /dev/null
+++ b/runtime/probes/scf/build
@@ -0,0 +1,2 @@
+#!/bin/bash
+../build_probe $*
diff --git a/runtime/probes/scf/scf.c b/runtime/probes/scf/scf.c
index dfdb7b0a..a8798f51 100644
--- a/runtime/probes/scf/scf.c
+++ b/runtime/probes/scf/scf.c
@@ -1,14 +1,12 @@
#define STP_NETLINK_ONLY
-#define STP_NUM_STRINGS 2
+#define STP_NUM_STRINGS 1
#include "runtime.h"
#define MAP_STRING_LENGTH 512
+#define NEED_INT64_VALS
#define KEY1_TYPE STRING
#include "map-keys.c"
-#define VALUE_TYPE INT64
-#include "map-values.c"
-
#include "map.c"
#include "sym.c"
#include "current.c"
diff --git a/runtime/probes/scf/targets b/runtime/probes/scf/targets
new file mode 100644
index 00000000..aafcca22
--- /dev/null
+++ b/runtime/probes/scf/targets
@@ -0,0 +1 @@
+scf