From: Steven Rostedt <rostedt@goodmis.org>
To: linux-trace-devel@vger.kernel.org
Cc: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
Subject: [PATCH 1/3] trace-cmd: Remove traceevent/ and tracefs/ from include headers
Date: Mon, 26 Jul 2021 12:28:55 -0400 [thread overview]
Message-ID: <20210726162857.487153-2-rostedt@goodmis.org> (raw)
In-Reply-To: <20210726162857.487153-1-rostedt@goodmis.org>
From: "Steven Rostedt (VMware)" <rostedt@goodmis.org>
trace-cmd now depends on the external libraries of both libtraceevent and
libtracefs and uses pkg-config to find their headers. As pkg-config will
find the full path to the headers, do not include parts of the path when
including them, because they may change, and the hardcoded path in the
code will not.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
---
include/trace-cmd/trace-cmd.h | 4 ++--
lib/trace-cmd/include/private/trace-cmd-private.h | 2 +-
lib/trace-cmd/trace-util.c | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/trace-cmd/trace-cmd.h b/include/trace-cmd/trace-cmd.h
index 6984db863303..7fea4e017b26 100644
--- a/include/trace-cmd/trace-cmd.h
+++ b/include/trace-cmd/trace-cmd.h
@@ -6,8 +6,8 @@
#ifndef _TRACE_CMD_H
#define _TRACE_CMD_H
-#include "traceevent/event-parse.h"
-#include "tracefs/tracefs.h"
+#include "event-parse.h"
+#include "tracefs.h"
struct tracecmd_input;
diff --git a/lib/trace-cmd/include/private/trace-cmd-private.h b/lib/trace-cmd/include/private/trace-cmd-private.h
index 6440084ddd9d..c58b09e9da48 100644
--- a/lib/trace-cmd/include/private/trace-cmd-private.h
+++ b/lib/trace-cmd/include/private/trace-cmd-private.h
@@ -8,7 +8,7 @@
#include <fcntl.h> /* for iovec */
#include <sys/types.h>
-#include "traceevent/event-parse.h"
+#include "event-parse.h"
#include "trace-cmd/trace-cmd.h"
#define __packed __attribute__((packed))
diff --git a/lib/trace-cmd/trace-util.c b/lib/trace-cmd/trace-util.c
index b0c98c724363..9bc948224732 100644
--- a/lib/trace-cmd/trace-util.c
+++ b/lib/trace-cmd/trace-util.c
@@ -20,8 +20,8 @@
#include <sys/stat.h>
#include <sys/sysinfo.h>
#include <time.h>
-#include <traceevent/event-parse.h>
-#include <traceevent/event-utils.h>
+#include <event-parse.h>
+#include <event-utils.h>
#include "trace-cmd-private.h"
#include "trace-cmd-local.h"
--
2.30.2
next prev parent reply other threads:[~2021-07-26 16:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-26 16:28 [PATCH 0/3] trace-cmd: Clean up library and KernelShark remnants Steven Rostedt
2021-07-26 16:28 ` Steven Rostedt [this message]
2021-07-26 16:28 ` [PATCH 2/3] trace-cmd: Remove leftover traces of libtraceevent in Makefiles Steven Rostedt
2021-07-26 16:28 ` [PATCH 3/3] trace-cmd: Remove remnants of KernelShark build Steven Rostedt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210726162857.487153-2-rostedt@goodmis.org \
--to=rostedt@goodmis.org \
--cc=linux-trace-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).