Commit | Line | Data |
---|---|---|
851803ea JD |
1 | CC=gcc |
2 | CFLAGS=-g -Wall -DHAVE_SYSTEMTAP | |
3 | LDFLAGS=-lust | |
4 | DTRACE=dtrace | |
5 | STAP=stap | |
6 | ||
7 | TARGETS=probes.h probes.o tracepoint_benchmark testutrace | |
8 | ||
9 | all: $(TARGETS) | |
10 | ||
11 | clean: | |
12 | rm $(TARGETS) | |
13 | ||
14 | tracepoint_benchmark: | |
15 | $(CC) $(CFLAGS) $(LDFLAGS) tracepoint_benchmark.c probes.o -o tracepoint_benchmark | |
16 | ||
17 | probes.h: probes.d | |
18 | $(DTRACE) -C -h -s $< -o $@ | |
19 | probes.o: probes.d | |
20 | $(DTRACE) -C -G -s $< -o $@ | |
21 | testutrace: | |
22 | $(STAP) -p4 testutrace.stp | |
23 |