Message ID | 20190814084712.28188-4-tz.stoyanov@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Steven Rostedt |
Headers | show |
Series | Separate trace-cmd and libtracecmd code | expand |
diff --git a/tracecmd/include/trace-msg.h b/include/trace-cmd/trace-msg.h similarity index 100% rename from tracecmd/include/trace-msg.h rename to include/trace-cmd/trace-msg.h diff --git a/lib/trace-cmd/Makefile b/lib/trace-cmd/Makefile index 0543b91..78875e4 100644 --- a/lib/trace-cmd/Makefile +++ b/lib/trace-cmd/Makefile @@ -14,6 +14,7 @@ OBJS += trace-output.o OBJS += trace-recorder.o OBJS += trace-util.o OBJS += trace-filter-hash.o +OBJS += trace-msg.o # Additional util objects OBJS += trace-blk-hack.o diff --git a/tracecmd/trace-msg.c b/lib/trace-cmd/trace-msg.c similarity index 100% rename from tracecmd/trace-msg.c rename to lib/trace-cmd/trace-msg.c diff --git a/tracecmd/Makefile b/tracecmd/Makefile index 6968f83..d491aae 100644 --- a/tracecmd/Makefile +++ b/tracecmd/Makefile @@ -30,7 +30,6 @@ TRACE_CMD_OBJS += trace-check-events.o TRACE_CMD_OBJS += trace-show.o TRACE_CMD_OBJS += trace-list.o TRACE_CMD_OBJS += trace-usage.o -TRACE_CMD_OBJS += trace-msg.o ALL_OBJS := $(TRACE_CMD_OBJS:%.o=$(bdir)/%.o)
Functions, implemented in trace-msg.c file, do not depend on trace-cmd application context and can be used standalone. The file is moved from trace-cmd to libtracecmd. Signed-off-by: Tzvetomir Stoyanov (VMware) <tz.stoyanov@gmail.com> --- {tracecmd/include => include/trace-cmd}/trace-msg.h | 0 lib/trace-cmd/Makefile | 1 + {tracecmd => lib/trace-cmd}/trace-msg.c | 0 tracecmd/Makefile | 1 - 4 files changed, 1 insertion(+), 1 deletion(-) rename {tracecmd/include => include/trace-cmd}/trace-msg.h (100%) rename {tracecmd => lib/trace-cmd}/trace-msg.c (100%)