This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathMakefile
81 lines (55 loc) · 2.63 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
ifneq ($(KERNELRELEASE),)
TOP_LT_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))
include $(TOP_LT_MODULES_DIR)/Makefile.ABI.workarounds
ccflags-y += -I$(src)/include $(EXTCFLAGS) -g -Wall
latency_tracker-objs := tracker.o rculfhash.o rculfhash-mm-chunk.o wfcqueue.o \
tracker_debugfs.o wrapper/trace-clock.o
latency_tracker-objs += $(shell \
if [ $(VERSION) -ge 4 -o \
\( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 -a $(SUBLEVEL) -ge 0 \) ] ; then \
echo "lttng-tracepoint.o" ; fi;)
obj-m := latency_tracker.o
latency_tracker_wakeup-objs := trackers/wakeup_latency.o trackers/wakeup_proc.o
obj-m += latency_tracker_wakeup.o
latency_tracker_offcpu-objs := trackers/offcpu.o trackers/offcpu_proc.o wrapper/trace-clock.o
obj-m += latency_tracker_offcpu.o
latency_tracker_syscalls-objs := trackers/syscalls.o trackers/syscalls_proc.o wrapper/trace-clock.o
obj-m += latency_tracker_syscalls.o
latency_tracker_block-objs := trackers/block_latency_tp.o
obj-m += latency_tracker_block.o
latency_tracker_block_hist-objs := trackers/block_hist.o trackers/block_hist_kprobes.o \
wrapper/trace-clock.o
obj-m += latency_tracker_block_hist.o
latency_tracker_network_stack-objs := trackers/network_stack_latency.o
obj-m += latency_tracker_network_stack.o
latency_tracker_critical_timing-objs := trackers/critical_timing.o wrapper/trace-clock.o tracker_debugfs.o
obj-m += latency_tracker_critical_timing.o
latency_tracker_rt-objs := trackers/rt.o wrapper/trace-clock.o tracker_debugfs.o
obj-m += latency_tracker_rt.o
obj-m += latency_tracker_begin_end.o
# TTFB tracker disabled before 3.13 because of a change in the
# IPv6 kernel structs. Fixable if needed.
latency_tracker_ttfb-objs := trackers/ttfb.o wrapper/trace-clock.o tracker_debugfs.o
obj-m += $(shell \
if [ $(VERSION) -ge 4 -o \
\( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 13 -a $(SUBLEVEL) -ge 0 \) ] ; then \
echo "latency_tracker_ttfb.o" ; fi;)
latency_tracker_self_test-objs := trackers/self_test.o
obj-m += latency_tracker_self_test.o
latency_tracker_userspace-objs := trackers/userspace.o wrapper/trace-clock.o tracker_debugfs.o
obj-m += latency_tracker_userspace.o
else # KERNELRELEASE
# This part of the Makefile is used when the 'make' command is run in the
# base directory of the latency-tracker sources. It sets some environment and
# calls the kernel build system to build the actual modules.
KERNELDIR ?= /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)
CFLAGS = $(EXTCFLAGS)
default: modules
modules:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules
modules_install:
$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
clean:
$(MAKE) -C $(KERNELDIR) M=$(PWD) clean
endif # KERNELRELEASE