diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | plugin_hrtimer.c (renamed from test_plugin.c) | 2 |
2 files changed, 3 insertions, 5 deletions
@@ -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 | ||
12 | TARGETS = libparsevent.a trace-cmd test_plugin | 12 | TARGETS = libparsevent.a trace-cmd plugin_hrtimer.so |
13 | 13 | ||
14 | all: $(TARGETS) | 14 | all: $(TARGETS) |
15 | 15 | ||
@@ -35,10 +35,10 @@ libparsevent.so: $(LIB_OBJS) | |||
35 | libparsevent.a: $(LIB_OBJS) | 35 | libparsevent.a: $(LIB_OBJS) |
36 | $(RM) $@; $(AR) rcs $@ $^ | 36 | $(RM) $@; $(AR) rcs $@ $^ |
37 | 37 | ||
38 | test_plugin.o: test_plugin.c parse-events.h | 38 | plugin_hrtimer.o: plugin_hrtimer.c parse-events.h |
39 | $(CC) -c $(CFLAGS) -fPIC -o $@ $< | 39 | $(CC) -c $(CFLAGS) -fPIC -o $@ $< |
40 | 40 | ||
41 | test_plugin: test_plugin.o | 41 | plugin_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 | ||
80 | int PEVENT_PLUGIN_LOADER(void) | 80 | int 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 | ||