[PATCH] trace-cmd: link trace-record in ctracecmd.so
From: Javi Merino
Date: Fri Aug 15 2014 - 11:31:58 EST
Commit b1e9220819eb (trace-cmd: Report stats for all instances) moved
tracecmd_stat_cpu() from trace-recorder.c to trace-record.c. This
makes import ctracecmd fail in tracecmd.py:
$ python tracecmd.py
Traceback (most recent call last):
File "tracecmd.py", line 22, in <module>
from ctracecmd import *
ImportError: ctracecmd.so: undefined symbol: tracecmd_stat_cpu
Link trace-record in ctracecmd.so to add back the required symbol.
Signed-off-by: Javi Merino <javi.merino@xxxxxxx>
---
Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index cbe0eb9..308d7f8 100644
--- a/Makefile
+++ b/Makefile
@@ -317,8 +317,9 @@ KERNEL_SHARK_OBJS = $(TRACE_VIEW_OBJS) $(TRACE_GRAPH_OBJS) $(TRACE_GUI_OBJS) \
PEVENT_LIB_OBJS = event-parse.o trace-seq.o parse-filter.o parse-utils.o
TCMD_LIB_OBJS = $(PEVENT_LIB_OBJS) trace-util.o trace-input.o trace-ftrace.o \
- trace-output.o trace-recorder.o trace-restore.o trace-usage.o \
- trace-blk-hack.o kbuffer-parse.o event-plugin.o
+ trace-output.o trace-record.o trace-recorder.o \
+ trace-restore.o trace-usage.o trace-blk-hack.o \
+ kbuffer-parse.o event-plugin.o
PLUGIN_OBJS =
PLUGIN_OBJS += plugin_jbd2.o
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/