aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--plugin_hrtimer.c (renamed from test_plugin.c)2
2 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 213f196..7a6dd0a 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ LIBS = -L. -lparsevent -ldl
9%.o: %.c 9%.o: %.c
10 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) $< -o $@ 10 $(CC) -c $(CFLAGS) $(EXT) $(INCLUDES) $< -o $@
11 11
12TARGETS = libparsevent.a trace-cmd test_plugin 12TARGETS = libparsevent.a trace-cmd plugin_hrtimer.so
13 13
14all: $(TARGETS) 14all: $(TARGETS)
15 15
@@ -35,10 +35,10 @@ libparsevent.so: $(LIB_OBJS)
35libparsevent.a: $(LIB_OBJS) 35libparsevent.a: $(LIB_OBJS)
36 $(RM) $@; $(AR) rcs $@ $^ 36 $(RM) $@; $(AR) rcs $@ $^
37 37
38test_plugin.o: test_plugin.c parse-events.h 38plugin_hrtimer.o: plugin_hrtimer.c parse-events.h
39 $(CC) -c $(CFLAGS) -fPIC -o $@ $< 39 $(CC) -c $(CFLAGS) -fPIC -o $@ $<
40 40
41test_plugin: test_plugin.o 41plugin_hrtimer.so: plugin_hrtimer.o
42 $(CC) -shared -nostartfiles -o $@ $< 42 $(CC) -shared -nostartfiles -o $@ $<
43 43
44.PHONY: force 44.PHONY: force
diff --git a/test_plugin.c b/plugin_hrtimer.c
index db98c8b..f3abd41 100644
--- a/test_plugin.c
+++ b/plugin_hrtimer.c
@@ -79,8 +79,6 @@ static int timer_start_handler(struct trace_seq *s, void *data, int size,
79 79
80int PEVENT_PLUGIN_LOADER(void) 80int PEVENT_PLUGIN_LOADER(void)
81{ 81{
82 printf("HELLO WORLD!!!\n");
83
84 pevent_register_event_handler(-1, "timer", "hrtimer_expire_entry", 82 pevent_register_event_handler(-1, "timer", "hrtimer_expire_entry",
85 timer_expire_handler); 83 timer_expire_handler);
86 84