This file is indexed.

/usr/src/lttng-modules-2.7.1/probes/Makefile is in lttng-modules-dkms 2.7.1-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
#
# Makefile for the LTT probes.
# Only build from the package top-level directory. Never use with make directly.

ifneq ($(KERNELRELEASE),)
ifneq ($(CONFIG_TRACEPOINTS),)

KERNELDIR = ${LTTNG_KERNELDIR}
MAKEFILEDIR = $(shell dirname $(lastword $(MAKEFILE_LIST)))

include $(MAKEFILEDIR)/../Makefile.ABI.workarounds

ccflags-y += -I$(PWD)/probes
obj-m += lttng-types.o

obj-m += lttng-probe-sched.o
obj-m += lttng-probe-irq.o
obj-m += lttng-probe-timer.o
obj-m += lttng-probe-kmem.o
obj-m += lttng-probe-module.o
obj-m += lttng-probe-power.o

obj-m += lttng-probe-statedump.o

ifneq ($(CONFIG_KVM),)
obj-m += lttng-probe-kvm.o
ifneq ($(CONFIG_X86),)
kvm_dep_lapic = $(srctree)/arch/x86/kvm/lapic.h
ifneq ($(wildcard $(kvm_dep_lapic)),)
kvm_dep = $(srctree)/virt/kvm/iodev.h $(srctree)/include/kvm/iodev.h
ifneq ($(wildcard $(kvm_dep)),)
CFLAGS_lttng-probe-kvm-x86.o += -I$(srctree)/virt/kvm
CFLAGS_lttng-probe-kvm-x86-mmu.o += -I$(srctree)/virt/kvm
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
		echo "lttng-probe-kvm-x86.o" ; fi;)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
		echo "lttng-probe-kvm-x86-mmu.o" ; fi;)
else
$(warning File $(kvm_dep) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.)
endif
else
$(warning File $(kvm_dep_lapic) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.)
endif
endif
endif

obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \
		echo "lttng-probe-signal.o" ; fi;)

ifneq ($(CONFIG_BLOCK),)
ifneq ($(CONFIG_EVENT_TRACING),)	# need blk_cmd_buf_len
obj-m += lttng-probe-block.o
endif
endif

ifneq ($(CONFIG_NET),)
obj-m += lttng-probe-napi.o
obj-m += lttng-probe-skb.o
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 37 \) ] ; then \
		echo "lttng-probe-net.o" ; fi;)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
		echo "lttng-probe-sock.o" ; fi;)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
		echo "lttng-probe-udp.o" ; fi;)
endif

ifneq ($(CONFIG_SND_SOC),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
		echo "lttng-probe-asoc.o" ; fi;)
endif

ifneq ($(CONFIG_EXT3_FS),)
ext3_dep = $(srctree)/fs/ext3/*.h
ext3_dep_check = $(wildcard $(ext3_dep))
ext3 = $(shell \
	if [ $(VERSION) -ge 4 -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
		if [ \( $(VERSION) -ge 4 -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 4 \) \) -a \
			-z "$(ext3_dep_check)" ] ; then \
			echo "warn" ; \
			exit ; \
		fi; \
		echo "lttng-probe-ext3.o" ; \
	fi;)
ifeq ($(ext3),warn)
$(warning Files $(ext3_dep) not found. Probe "ext3" is disabled. Use full kernel source tree to enable it.)
ext3 =
endif
obj-m += $(ext3)
endif

ifneq ($(CONFIG_GPIOLIB),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 ] ; then \
		echo "lttng-probe-gpio.o" ; fi;)
endif

ifneq ($(CONFIG_JBD2),)
obj-m += lttng-probe-jbd2.o
endif

ifneq ($(CONFIG_JBD),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 1 \) ] ; then \
		echo "lttng-probe-jbd.o" ; fi;)
endif

ifneq ($(CONFIG_REGULATOR),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
		echo "lttng-probe-regulator.o" ; fi;)
endif

ifneq ($(CONFIG_SCSI),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 35 \) ] ; then \
		echo "lttng-probe-scsi.o" ; fi;)
endif

vmscan = $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 36 \) ] ; then \
		echo "lttng-probe-vmscan.o" ; fi;)
ifneq ($(CONFIG_SWAP),)
	obj-m += $(vmscan)
else
ifneq ($(CONFIG_CGROUP_MEM_RES_CTLR),)
	obj-m += $(vmscan)
endif
endif

# lock probe does not work, so disabling it for now
#ifneq ($(CONFIG_LOCKDEP),)
#obj-m += lttng-probe-lock.o
#endif

ifneq ($(CONFIG_BTRFS_FS),)
btrfs_dep = $(srctree)/fs/btrfs/*.h
btrfs = $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 39 \) ] ; then \
		echo "lttng-probe-btrfs.o" ; fi;)
ifneq ($(btrfs),)
ifeq ($(wildcard $(btrfs_dep)),)
$(warning Files $(btrfs_dep) not found. Probe "btrfs" is disabled. Use full kernel source tree to enable it.)
btrfs =
endif
endif
obj-m += $(btrfs)
endif

obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
		echo "lttng-probe-compaction.o" ; fi;)

ifneq ($(CONFIG_EXT4_FS),)
ext4_dep = $(srctree)/fs/ext4/*.h
ext4 = lttng-probe-ext4.o
ifeq ($(wildcard $(ext4_dep)),)
$(warning Files $(ext4_dep) not found. Probe "ext4" is disabled. Use full kernel source tree to enable it.)
ext4 =
endif
obj-m += $(ext4)
endif

obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 4 \) ] ; then \
		echo "lttng-probe-printk.o" ; fi;)
ifneq ($(CONFIG_FRAME_WARN),0)
CFLAGS_lttng-probe-printk.o += -Wframe-larger-than=2200
endif

obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 6 \) \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -eq 5 -a $(SUBLEVEL) -ge 2 \) \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -eq 4 -a $(SUBLEVEL) -ge 9 \) \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -eq 0 -a $(SUBLEVEL) -ge 41 \) ] ; then \
		echo "lttng-probe-random.o" ; fi;)

obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 2 \) ] ; then \
		echo "lttng-probe-rcu.o" ; fi;)

ifneq ($(CONFIG_REGMAP),)
regmap_dep_4_1 = $(srctree)/drivers/base/regmap/trace.h
ifneq ($(wildcard $(regmap_dep_4_1)),)
obj-m += lttng-probe-regmap.o
else
$(warning File $(regmap_dep_4_1) not found. Probe "regmap" is disabled. Need Linux 4.1+ kernel source tree to enable it.)
endif
endif

ifneq ($(CONFIG_PM_RUNTIME),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 2 \) ] ; then \
		echo "lttng-probe-rpm.o" ; fi;)
endif

ifneq ($(CONFIG_SUNRPC),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 4 \) ] ; then \
		echo "lttng-probe-sunrpc.o" ; fi;)
endif

ifneq ($(CONFIG_VIDEO_V4L2),)
obj-m += $(shell \
	if [ $(VERSION) -ge 4 \
		-o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 14 \) ] ; then \
		echo "lttng-probe-v4l2.o" ; fi;)
endif

obj-m += lttng-probe-workqueue.o

ifneq ($(CONFIG_KALLSYMS_ALL),)
obj-m +=  $(shell \
	if [ $(VERSION) -ge 3 \
		-o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 36 \) ] ; then \
		echo "lttng-probe-writeback.o" ; fi;)
else
$(warning CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.)
endif


ifneq ($(CONFIG_KPROBES),)
obj-m += lttng-kprobes.o
endif


ifneq ($(CONFIG_KRETPROBES),)
obj-m += lttng-kretprobes.o
endif

ifneq ($(CONFIG_DYNAMIC_FTRACE),)
obj-m += lttng-ftrace.o
endif

endif

obj-m += lttng-test.o

else
	KERNELDIR ?= /lib/modules/$(shell uname -r)/build
	PWD := $(shell pwd)
	CFLAGS = $(EXTCFLAGS)

default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

modules_install:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
	/sbin/depmod -a

clean:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) clean

endif