aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorTzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com>2019-09-19 17:23:41 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-09-25 08:51:43 -0400
commit077faf3dc7cc13c3bd784613304bf38696b591da (patch)
tree89ad2a3e12bb8b225a9317c76b10d1f708b89254 /tools
parentd69094f364d012f6d0be712969e6a6a355b69e84 (diff)
libtraceevent: Move traceevent plugins in its own subdirectory
All traceevent plugins code is moved to tools/lib/traceevent/plugins subdirectory. It makes traceevent implementation in trace-cmd and in kernel tree consistent. There is no changes in the way libtraceevent and plugins are compiled and installed. Committer notes: Applied fixup provided by Steven, fixing the tools/perf/Makefile.perf target for the plugin dynamic list file. Problem noticed when cross building to aarch64 from a Ubuntu 19.04 container. Suggested-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> Cc: linux-trace-devel@vger.kernel.org Link: http://lore.kernel.org/lkml/20190923115929.453b68f1@oasis.local.home Link: http://lore.kernel.org/lkml/20190919212542.377333393@goodmis.org Link: http://lore.kernel.org/linux-trace-devel/20190917105055.18983-1-tz.stoyanov@gmail.com Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/lib/traceevent/Build11
-rw-r--r--tools/lib/traceevent/Makefile94
-rw-r--r--tools/lib/traceevent/plugins/Build10
-rw-r--r--tools/lib/traceevent/plugins/Makefile222
-rw-r--r--tools/lib/traceevent/plugins/plugin_cfg80211.c (renamed from tools/lib/traceevent/plugin_cfg80211.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_function.c (renamed from tools/lib/traceevent/plugin_function.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_hrtimer.c (renamed from tools/lib/traceevent/plugin_hrtimer.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_jbd2.c (renamed from tools/lib/traceevent/plugin_jbd2.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_kmem.c (renamed from tools/lib/traceevent/plugin_kmem.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_kvm.c (renamed from tools/lib/traceevent/plugin_kvm.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_mac80211.c (renamed from tools/lib/traceevent/plugin_mac80211.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_sched_switch.c (renamed from tools/lib/traceevent/plugin_sched_switch.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_scsi.c (renamed from tools/lib/traceevent/plugin_scsi.c)0
-rw-r--r--tools/lib/traceevent/plugins/plugin_xen.c (renamed from tools/lib/traceevent/plugin_xen.c)0
-rw-r--r--tools/perf/Makefile.perf4
15 files changed, 250 insertions, 91 deletions
diff --git a/tools/lib/traceevent/Build b/tools/lib/traceevent/Build
index ba54bfce0b0b..f9a5d79578f5 100644
--- a/tools/lib/traceevent/Build
+++ b/tools/lib/traceevent/Build
@@ -6,14 +6,3 @@ libtraceevent-y += parse-utils.o
6libtraceevent-y += kbuffer-parse.o 6libtraceevent-y += kbuffer-parse.o
7libtraceevent-y += tep_strerror.o 7libtraceevent-y += tep_strerror.o
8libtraceevent-y += event-parse-api.o 8libtraceevent-y += event-parse-api.o
9
10plugin_jbd2-y += plugin_jbd2.o
11plugin_hrtimer-y += plugin_hrtimer.o
12plugin_kmem-y += plugin_kmem.o
13plugin_kvm-y += plugin_kvm.o
14plugin_mac80211-y += plugin_mac80211.o
15plugin_sched_switch-y += plugin_sched_switch.o
16plugin_function-y += plugin_function.o
17plugin_xen-y += plugin_xen.o
18plugin_scsi-y += plugin_scsi.o
19plugin_cfg80211-y += plugin_cfg80211.o
diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
index a39cdd0d890d..5315f3787f8d 100644
--- a/tools/lib/traceevent/Makefile
+++ b/tools/lib/traceevent/Makefile
@@ -58,30 +58,6 @@ export man_dir man_dir_SQ INSTALL
58export DESTDIR DESTDIR_SQ 58export DESTDIR DESTDIR_SQ
59export EVENT_PARSE_VERSION 59export EVENT_PARSE_VERSION
60 60
61set_plugin_dir := 1
62
63# Set plugin_dir to preffered global plugin location
64# If we install under $HOME directory we go under
65# $(HOME)/.local/lib/traceevent/plugins
66#
67# We dont set PLUGIN_DIR in case we install under $HOME
68# directory, because by default the code looks under:
69# $(HOME)/.local/lib/traceevent/plugins by default.
70#
71ifeq ($(plugin_dir),)
72ifeq ($(prefix),$(HOME))
73override plugin_dir = $(HOME)/.local/lib/traceevent/plugins
74set_plugin_dir := 0
75else
76override plugin_dir = $(libdir)/traceevent/plugins
77endif
78endif
79
80ifeq ($(set_plugin_dir),1)
81PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
82PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
83endif
84
85include ../../scripts/Makefile.include 61include ../../scripts/Makefile.include
86 62
87# copy a bit from Linux kbuild 63# copy a bit from Linux kbuild
@@ -105,7 +81,6 @@ export prefix libdir src obj
105# Shell quotes 81# Shell quotes
106libdir_SQ = $(subst ','\'',$(libdir)) 82libdir_SQ = $(subst ','\'',$(libdir))
107libdir_relative_SQ = $(subst ','\'',$(libdir_relative)) 83libdir_relative_SQ = $(subst ','\'',$(libdir_relative))
108plugin_dir_SQ = $(subst ','\'',$(plugin_dir))
109 84
110CONFIG_INCLUDES = 85CONFIG_INCLUDES =
111CONFIG_LIBS = 86CONFIG_LIBS =
@@ -151,29 +126,14 @@ MAKEOVERRIDES=
151export srctree OUTPUT CC LD CFLAGS V 126export srctree OUTPUT CC LD CFLAGS V
152build := -f $(srctree)/tools/build/Makefile.build dir=. obj 127build := -f $(srctree)/tools/build/Makefile.build dir=. obj
153 128
154PLUGINS = plugin_jbd2.so
155PLUGINS += plugin_hrtimer.so
156PLUGINS += plugin_kmem.so
157PLUGINS += plugin_kvm.so
158PLUGINS += plugin_mac80211.so
159PLUGINS += plugin_sched_switch.so
160PLUGINS += plugin_function.so
161PLUGINS += plugin_xen.so
162PLUGINS += plugin_scsi.so
163PLUGINS += plugin_cfg80211.so
164
165PLUGINS := $(addprefix $(OUTPUT),$(PLUGINS))
166PLUGINS_IN := $(PLUGINS:.so=-in.o)
167
168TE_IN := $(OUTPUT)libtraceevent-in.o 129TE_IN := $(OUTPUT)libtraceevent-in.o
169LIB_TARGET := $(addprefix $(OUTPUT),$(LIB_TARGET)) 130LIB_TARGET := $(addprefix $(OUTPUT),$(LIB_TARGET))
170DYNAMIC_LIST_FILE := $(OUTPUT)libtraceevent-dynamic-list
171 131
172CMD_TARGETS = $(LIB_TARGET) $(PLUGINS) $(DYNAMIC_LIST_FILE) 132CMD_TARGETS = $(LIB_TARGET)
173 133
174TARGETS = $(CMD_TARGETS) 134TARGETS = $(CMD_TARGETS)
175 135
176all: all_cmd 136all: all_cmd plugins
177 137
178all_cmd: $(CMD_TARGETS) 138all_cmd: $(CMD_TARGETS)
179 139
@@ -188,17 +148,6 @@ $(OUTPUT)libtraceevent.so.$(EVENT_PARSE_VERSION): $(TE_IN)
188$(OUTPUT)libtraceevent.a: $(TE_IN) 148$(OUTPUT)libtraceevent.a: $(TE_IN)
189 $(QUIET_LINK)$(RM) $@; $(AR) rcs $@ $^ 149 $(QUIET_LINK)$(RM) $@; $(AR) rcs $@ $^
190 150
191$(OUTPUT)libtraceevent-dynamic-list: $(PLUGINS)
192 $(QUIET_GEN)$(call do_generate_dynamic_list_file, $(PLUGINS), $@)
193
194plugins: $(PLUGINS)
195
196__plugin_obj = $(notdir $@)
197 plugin_obj = $(__plugin_obj:-in.o=)
198
199$(PLUGINS_IN): force
200 $(Q)$(MAKE) $(build)=$(plugin_obj)
201
202$(OUTPUT)%.so: $(OUTPUT)%-in.o 151$(OUTPUT)%.so: $(OUTPUT)%-in.o
203 $(QUIET_LINK)$(CC) $(CFLAGS) -shared $(LDFLAGS) -nostartfiles -o $@ $^ 152 $(QUIET_LINK)$(CC) $(CFLAGS) -shared $(LDFLAGS) -nostartfiles -o $@ $^
204 153
@@ -258,25 +207,6 @@ define do_install
258 $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2' 207 $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
259endef 208endef
260 209
261define do_install_plugins
262 for plugin in $1; do \
263 $(call do_install,$$plugin,$(plugin_dir_SQ)); \
264 done
265endef
266
267define do_generate_dynamic_list_file
268 symbol_type=`$(NM) -u -D $1 | awk 'NF>1 {print $$1}' | \
269 xargs echo "U w W" | tr 'w ' 'W\n' | sort -u | xargs echo`;\
270 if [ "$$symbol_type" = "U W" ];then \
271 (echo '{'; \
272 $(NM) -u -D $1 | awk 'NF>1 {print "\t"$$2";"}' | sort -u;\
273 echo '};'; \
274 ) > $2; \
275 else \
276 (echo Either missing one of [$1] or bad version of $(NM)) 1>&2;\
277 fi
278endef
279
280PKG_CONFIG_FILE = libtraceevent.pc 210PKG_CONFIG_FILE = libtraceevent.pc
281define do_install_pkgconfig_file 211define do_install_pkgconfig_file
282 if [ -n "${pkgconfig_dir}" ]; then \ 212 if [ -n "${pkgconfig_dir}" ]; then \
@@ -296,10 +226,6 @@ install_lib: all_cmd install_plugins install_headers install_pkgconfig
296 $(call do_install_mkdir,$(libdir_SQ)); \ 226 $(call do_install_mkdir,$(libdir_SQ)); \
297 cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) 227 cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ)
298 228
299install_plugins: $(PLUGINS)
300 $(call QUIET_INSTALL, trace_plugins) \
301 $(call do_install_plugins, $(PLUGINS))
302
303install_pkgconfig: 229install_pkgconfig:
304 $(call QUIET_INSTALL, $(PKG_CONFIG_FILE)) \ 230 $(call QUIET_INSTALL, $(PKG_CONFIG_FILE)) \
305 $(call do_install_pkgconfig_file,$(prefix)) 231 $(call do_install_pkgconfig_file,$(prefix))
@@ -313,7 +239,7 @@ install_headers:
313 239
314install: install_lib 240install: install_lib
315 241
316clean: 242clean: clean_plugins
317 $(call QUIET_CLEAN, libtraceevent) \ 243 $(call QUIET_CLEAN, libtraceevent) \
318 $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d .*.cmd; \ 244 $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d .*.cmd; \
319 $(RM) TRACEEVENT-CFLAGS tags TAGS; \ 245 $(RM) TRACEEVENT-CFLAGS tags TAGS; \
@@ -351,7 +277,19 @@ help:
351 @echo ' doc-install - install the man pages' 277 @echo ' doc-install - install the man pages'
352 @echo ' doc-uninstall - uninstall the man pages' 278 @echo ' doc-uninstall - uninstall the man pages'
353 @echo'' 279 @echo''
354PHONY += force plugins 280
281PHONY += plugins
282plugins:
283 $(call descend,plugins)
284
285PHONY += install_plugins
286install_plugins:
287 $(call descend,plugins,install)
288
289PHONY += clean_plugins
290clean_plugins:
291 $(call descend,plugins,clean)
292
355force: 293force:
356 294
357# Declare the contents of the .PHONY variable as phony. We keep that 295# Declare the contents of the .PHONY variable as phony. We keep that
diff --git a/tools/lib/traceevent/plugins/Build b/tools/lib/traceevent/plugins/Build
new file mode 100644
index 000000000000..210d26910613
--- /dev/null
+++ b/tools/lib/traceevent/plugins/Build
@@ -0,0 +1,10 @@
1plugin_jbd2-y += plugin_jbd2.o
2plugin_hrtimer-y += plugin_hrtimer.o
3plugin_kmem-y += plugin_kmem.o
4plugin_kvm-y += plugin_kvm.o
5plugin_mac80211-y += plugin_mac80211.o
6plugin_sched_switch-y += plugin_sched_switch.o
7plugin_function-y += plugin_function.o
8plugin_xen-y += plugin_xen.o
9plugin_scsi-y += plugin_scsi.o
10plugin_cfg80211-y += plugin_cfg80211.o
diff --git a/tools/lib/traceevent/plugins/Makefile b/tools/lib/traceevent/plugins/Makefile
new file mode 100644
index 000000000000..f440989fa55e
--- /dev/null
+++ b/tools/lib/traceevent/plugins/Makefile
@@ -0,0 +1,222 @@
1# SPDX-License-Identifier: GPL-2.0
2
3#MAKEFLAGS += --no-print-directory
4
5
6# Makefiles suck: This macro sets a default value of $(2) for the
7# variable named by $(1), unless the variable has been set by
8# environment or command line. This is necessary for CC and AR
9# because make sets default values, so the simpler ?= approach
10# won't work as expected.
11define allow-override
12 $(if $(or $(findstring environment,$(origin $(1))),\
13 $(findstring command line,$(origin $(1)))),,\
14 $(eval $(1) = $(2)))
15endef
16
17# Allow setting CC and AR, or setting CROSS_COMPILE as a prefix.
18$(call allow-override,CC,$(CROSS_COMPILE)gcc)
19$(call allow-override,AR,$(CROSS_COMPILE)ar)
20$(call allow-override,NM,$(CROSS_COMPILE)nm)
21$(call allow-override,PKG_CONFIG,pkg-config)
22
23EXT = -std=gnu99
24INSTALL = install
25
26# Use DESTDIR for installing into a different root directory.
27# This is useful for building a package. The program will be
28# installed in this directory as if it was the root directory.
29# Then the build tool can move it later.
30DESTDIR ?=
31DESTDIR_SQ = '$(subst ','\'',$(DESTDIR))'
32
33LP64 := $(shell echo __LP64__ | ${CC} ${CFLAGS} -E -x c - | tail -n 1)
34ifeq ($(LP64), 1)
35 libdir_relative = lib64
36else
37 libdir_relative = lib
38endif
39
40prefix ?= /usr/local
41libdir = $(prefix)/$(libdir_relative)
42
43set_plugin_dir := 1
44
45# Set plugin_dir to preffered global plugin location
46# If we install under $HOME directory we go under
47# $(HOME)/.local/lib/traceevent/plugins
48#
49# We dont set PLUGIN_DIR in case we install under $HOME
50# directory, because by default the code looks under:
51# $(HOME)/.local/lib/traceevent/plugins by default.
52#
53ifeq ($(plugin_dir),)
54ifeq ($(prefix),$(HOME))
55override plugin_dir = $(HOME)/.local/lib/traceevent/plugins
56set_plugin_dir := 0
57else
58override plugin_dir = $(libdir)/traceevent/plugins
59endif
60endif
61
62ifeq ($(set_plugin_dir),1)
63PLUGIN_DIR = -DPLUGIN_DIR="$(plugin_dir)"
64PLUGIN_DIR_SQ = '$(subst ','\'',$(PLUGIN_DIR))'
65endif
66
67include ../../../scripts/Makefile.include
68
69# copy a bit from Linux kbuild
70
71ifeq ("$(origin V)", "command line")
72 VERBOSE = $(V)
73endif
74ifndef VERBOSE
75 VERBOSE = 0
76endif
77
78ifeq ($(srctree),)
79srctree := $(patsubst %/,%,$(dir $(CURDIR)))
80srctree := $(patsubst %/,%,$(dir $(srctree)))
81srctree := $(patsubst %/,%,$(dir $(srctree)))
82srctree := $(patsubst %/,%,$(dir $(srctree)))
83#$(info Determined 'srctree' to be $(srctree))
84endif
85
86export prefix libdir src obj
87
88# Shell quotes
89plugin_dir_SQ = $(subst ','\'',$(plugin_dir))
90
91CONFIG_INCLUDES =
92CONFIG_LIBS =
93CONFIG_FLAGS =
94
95OBJ = $@
96N =
97
98INCLUDES = -I. -I.. -I $(srctree)/tools/include $(CONFIG_INCLUDES)
99
100# Set compile option CFLAGS
101ifdef EXTRA_CFLAGS
102 CFLAGS := $(EXTRA_CFLAGS)
103else
104 CFLAGS := -g -Wall
105endif
106
107# Append required CFLAGS
108override CFLAGS += -fPIC
109override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ)
110override CFLAGS += $(udis86-flags) -D_GNU_SOURCE
111
112ifeq ($(VERBOSE),1)
113 Q =
114else
115 Q = @
116endif
117
118# Disable command line variables (CFLAGS) override from top
119# level Makefile (perf), otherwise build Makefile will get
120# the same command line setup.
121MAKEOVERRIDES=
122
123export srctree OUTPUT CC LD CFLAGS V
124
125build := -f $(srctree)/tools/build/Makefile.build dir=. obj
126
127DYNAMIC_LIST_FILE := $(OUTPUT)libtraceevent-dynamic-list
128
129PLUGINS = plugin_jbd2.so
130PLUGINS += plugin_hrtimer.so
131PLUGINS += plugin_kmem.so
132PLUGINS += plugin_kvm.so
133PLUGINS += plugin_mac80211.so
134PLUGINS += plugin_sched_switch.so
135PLUGINS += plugin_function.so
136PLUGINS += plugin_xen.so
137PLUGINS += plugin_scsi.so
138PLUGINS += plugin_cfg80211.so
139
140PLUGINS := $(addprefix $(OUTPUT),$(PLUGINS))
141PLUGINS_IN := $(PLUGINS:.so=-in.o)
142
143plugins: $(PLUGINS) $(DYNAMIC_LIST_FILE)
144
145__plugin_obj = $(notdir $@)
146 plugin_obj = $(__plugin_obj:-in.o=)
147
148$(PLUGINS_IN): force
149 $(Q)$(MAKE) $(build)=$(plugin_obj)
150
151$(OUTPUT)libtraceevent-dynamic-list: $(PLUGINS)
152 $(QUIET_GEN)$(call do_generate_dynamic_list_file, $(PLUGINS), $@)
153
154$(OUTPUT)%.so: $(OUTPUT)%-in.o
155 $(QUIET_LINK)$(CC) $(CFLAGS) -shared $(LDFLAGS) -nostartfiles -o $@ $^
156
157define update_dir
158 (echo $1 > $@.tmp; \
159 if [ -r $@ ] && cmp -s $@ $@.tmp; then \
160 rm -f $@.tmp; \
161 else \
162 echo ' UPDATE $@'; \
163 mv -f $@.tmp $@; \
164 fi);
165endef
166
167tags: force
168 $(RM) tags
169 find . -name '*.[ch]' | xargs ctags --extra=+f --c-kinds=+px \
170 --regex-c++='/_PE\(([^,)]*).*/TEP_ERRNO__\1/'
171
172TAGS: force
173 $(RM) TAGS
174 find . -name '*.[ch]' | xargs etags \
175 --regex='/_PE(\([^,)]*\).*/TEP_ERRNO__\1/'
176
177define do_install_mkdir
178 if [ ! -d '$(DESTDIR_SQ)$1' ]; then \
179 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$1'; \
180 fi
181endef
182
183define do_install
184 $(call do_install_mkdir,$2); \
185 $(INSTALL) $(if $3,-m $3,) $1 '$(DESTDIR_SQ)$2'
186endef
187
188define do_install_plugins
189 for plugin in $1; do \
190 $(call do_install,$$plugin,$(plugin_dir_SQ)); \
191 done
192endef
193
194define do_generate_dynamic_list_file
195 symbol_type=`$(NM) -u -D $1 | awk 'NF>1 {print $$1}' | \
196 xargs echo "U w W" | tr 'w ' 'W\n' | sort -u | xargs echo`;\
197 if [ "$$symbol_type" = "U W" ];then \
198 (echo '{'; \
199 $(NM) -u -D $1 | awk 'NF>1 {print "\t"$$2";"}' | sort -u;\
200 echo '};'; \
201 ) > $2; \
202 else \
203 (echo Either missing one of [$1] or bad version of $(NM)) 1>&2;\
204 fi
205endef
206
207install: $(PLUGINS)
208 $(call QUIET_INSTALL, trace_plugins) \
209 $(call do_install_plugins, $(PLUGINS))
210
211clean:
212 $(call QUIET_CLEAN, trace_plugins) \
213 $(RM) *.o *~ $(TARGETS) *.a *.so $(VERSION_FILES) .*.d .*.cmd; \
214 $(RM) $(OUTPUT)libtraceevent-dynamic-list \
215 $(RM) TRACEEVENT-CFLAGS tags TAGS;
216
217PHONY += force plugins
218force:
219
220# Declare the contents of the .PHONY variable as phony. We keep that
221# information in a variable so we can use it in if_changed and friends.
222.PHONY: $(PHONY)
diff --git a/tools/lib/traceevent/plugin_cfg80211.c b/tools/lib/traceevent/plugins/plugin_cfg80211.c
index 3d43b56a6c98..3d43b56a6c98 100644
--- a/tools/lib/traceevent/plugin_cfg80211.c
+++ b/tools/lib/traceevent/plugins/plugin_cfg80211.c
diff --git a/tools/lib/traceevent/plugin_function.c b/tools/lib/traceevent/plugins/plugin_function.c
index 7770fcb78e0f..7770fcb78e0f 100644
--- a/tools/lib/traceevent/plugin_function.c
+++ b/tools/lib/traceevent/plugins/plugin_function.c
diff --git a/tools/lib/traceevent/plugin_hrtimer.c b/tools/lib/traceevent/plugins/plugin_hrtimer.c
index bb434e0ed03a..bb434e0ed03a 100644
--- a/tools/lib/traceevent/plugin_hrtimer.c
+++ b/tools/lib/traceevent/plugins/plugin_hrtimer.c
diff --git a/tools/lib/traceevent/plugin_jbd2.c b/tools/lib/traceevent/plugins/plugin_jbd2.c
index 04fc125f38cb..04fc125f38cb 100644
--- a/tools/lib/traceevent/plugin_jbd2.c
+++ b/tools/lib/traceevent/plugins/plugin_jbd2.c
diff --git a/tools/lib/traceevent/plugin_kmem.c b/tools/lib/traceevent/plugins/plugin_kmem.c
index edaec5d962c3..edaec5d962c3 100644
--- a/tools/lib/traceevent/plugin_kmem.c
+++ b/tools/lib/traceevent/plugins/plugin_kmem.c
diff --git a/tools/lib/traceevent/plugin_kvm.c b/tools/lib/traceevent/plugins/plugin_kvm.c
index c8e623065a7e..c8e623065a7e 100644
--- a/tools/lib/traceevent/plugin_kvm.c
+++ b/tools/lib/traceevent/plugins/plugin_kvm.c
diff --git a/tools/lib/traceevent/plugin_mac80211.c b/tools/lib/traceevent/plugins/plugin_mac80211.c
index 884303c26b5c..884303c26b5c 100644
--- a/tools/lib/traceevent/plugin_mac80211.c
+++ b/tools/lib/traceevent/plugins/plugin_mac80211.c
diff --git a/tools/lib/traceevent/plugin_sched_switch.c b/tools/lib/traceevent/plugins/plugin_sched_switch.c
index 957389a0ff7a..957389a0ff7a 100644
--- a/tools/lib/traceevent/plugin_sched_switch.c
+++ b/tools/lib/traceevent/plugins/plugin_sched_switch.c
diff --git a/tools/lib/traceevent/plugin_scsi.c b/tools/lib/traceevent/plugins/plugin_scsi.c
index 5d0387a4b65a..5d0387a4b65a 100644
--- a/tools/lib/traceevent/plugin_scsi.c
+++ b/tools/lib/traceevent/plugins/plugin_scsi.c
diff --git a/tools/lib/traceevent/plugin_xen.c b/tools/lib/traceevent/plugins/plugin_xen.c
index 993b208d0323..993b208d0323 100644
--- a/tools/lib/traceevent/plugin_xen.c
+++ b/tools/lib/traceevent/plugins/plugin_xen.c
diff --git a/tools/perf/Makefile.perf b/tools/perf/Makefile.perf
index 2ccc12f3730b..902c792f326a 100644
--- a/tools/perf/Makefile.perf
+++ b/tools/perf/Makefile.perf
@@ -292,7 +292,7 @@ endif
292LIBTRACEEVENT = $(TE_PATH)libtraceevent.a 292LIBTRACEEVENT = $(TE_PATH)libtraceevent.a
293export LIBTRACEEVENT 293export LIBTRACEEVENT
294 294
295LIBTRACEEVENT_DYNAMIC_LIST = $(TE_PATH)libtraceevent-dynamic-list 295LIBTRACEEVENT_DYNAMIC_LIST = $(TE_PATH)plugins/libtraceevent-dynamic-list
296 296
297# 297#
298# The static build has no dynsym table, so this does not work for 298# The static build has no dynsym table, so this does not work for
@@ -737,7 +737,7 @@ libtraceevent_plugins: FORCE
737 $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) plugins 737 $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) plugins
738 738
739$(LIBTRACEEVENT_DYNAMIC_LIST): libtraceevent_plugins 739$(LIBTRACEEVENT_DYNAMIC_LIST): libtraceevent_plugins
740 $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)libtraceevent-dynamic-list 740 $(Q)$(MAKE) -C $(TRACE_EVENT_DIR) $(LIBTRACEEVENT_FLAGS) O=$(OUTPUT) $(OUTPUT)plugins/libtraceevent-dynamic-list
741 741
742$(LIBTRACEEVENT)-clean: 742$(LIBTRACEEVENT)-clean:
743 $(call QUIET_CLEAN, libtraceevent) 743 $(call QUIET_CLEAN, libtraceevent)