[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210610153221.476063dc@oasis.local.home>
Date: Thu, 10 Jun 2021 15:32:21 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>,
Ingo Molnar <mingo@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
linux-perf-users <linux-perf-users@...r.kernel.org>,
LKML <linux-kernel@...r.kernel.org>,
Linux-trace Users <linux-trace-users@...r.kernel.org>,
Tzvetomir Stoyanov <tz.stoyanov@...il.com>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [RFC PATCH] libtraceevent: Increase libtraceevent logging when
verbose
On Thu, 10 Jun 2021 11:50:00 -0700
Ian Rogers <irogers@...gle.com> wrote:
> #if LIBTRACE_EVENT_API > 123
> ...
> #endif
>
> so that we can make sure perf is taking advantage of the improvements
> in the libtraceevent API?
Yes, and trace-cmd did that.
In the Makefile:
LIBTRACEEVENT_MIN_VERSION = 1.2.3
TEST_LIBTRACEEVENT = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent > /dev/null 2>&1 && echo y")
ifeq ("$(TEST_LIBTRACEEVENT)", "y")
CFLAGS += -DHAVE_TRACEVEVENT_API
endif
Then you can use in perf
#ifdef HAVE_TRACEEVENT_API
...
#endif
That's just one example of what you could do.
-- Steve
Powered by blists - more mailing lists