Re: [RFC PATCH] libtraceevent: Increase libtraceevent logging when verbose
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [RFC PATCH] libtraceevent: Increase libtraceevent logging when verbose
- From: Jiri Olsa <jolsa@xxxxxxxxxx>
- Date: Thu, 10 Jun 2021 22:47:41 +0200
- Cc: Ian Rogers <irogers@xxxxxxxxxx>, Peter Zijlstra <peterz@xxxxxxxxxxxxx>, Ingo Molnar <mingo@xxxxxxxxxx>, Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>, Mark Rutland <mark.rutland@xxxxxxx>, Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>, Namhyung Kim <namhyung@xxxxxxxxxx>, linux-perf-users@xxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, linux-trace-users@xxxxxxxxxxxxxxx, Tzvetomir Stoyanov <tz.stoyanov@xxxxxxxxx>, eranian@xxxxxxxxxx, Michael Petlan <mpetlan@xxxxxxxxxx>
- In-reply-to: <20210610155915.20a252d3@oasis.local.home>
- References: <20210610060643.595673-1-irogers@google.com> <20210610103927.44462e35@oasis.local.home> <YMJjMPDKo2IdCC6G@krava> <20210610155915.20a252d3@oasis.local.home>
On Thu, Jun 10, 2021 at 03:59:15PM -0400, Steven Rostedt wrote:
> On Thu, 10 Jun 2021 21:08:32 +0200
> Jiri Olsa <jolsa@xxxxxxxxxx> wrote:
>
> > Michael did the libtraceevent detection and dynamic linking support:
> > https://lore.kernel.org/linux-perf-users/20210428092023.4009-1-mpetlan@xxxxxxxxxx/
> >
> > I think we should have that in Fedora/RHEL rpms already, or it's on the way.
> >
> > The detection code could be change to contain things we need.
>
> Or it can also be changed to export the version too?
>
> LIBTRACEEVENT_VERSION = $(shell pkg-config --modversion libtraceevent | perl -e '$ver=<>; @v=split /,/,$ver; printf "%d\n", $v[0] * 255 * 255 | $v[1] * 255 | $v[2];')
>
> -DLIBTRACEFS_VERSION=$(LIBTRACEEVENT_VERSION)
so the feature detection just gives out on/off answers,
but we can easily put above to perf's makefile
jirka
>
> Then in C have:
>
> #define VERSION(a,b,c) ((a)*255*255|(b)*255|(c))
>
> #if LIBTRACEEVENT_VERSION >= VERSION(1,2,3)
>
> To test if the libtraceevent feature is available?
>
> -- Steve
>
[Index of Archives]
[Linux USB Development]
[Linux USB Development]
[Linux Audio Users]
[Yosemite Hiking]
[Linux Kernel]
[Linux SCSI]