[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZypaM8PoTDQXS61s@x1>
Date: Tue, 5 Nov 2024 14:47:31 -0300
From: Arnaldo Carvalho de Melo <acme@...nel.org>
To: Ian Rogers <irogers@...gle.com>
Cc: Peter Zijlstra <peterz@...radead.org>, Ingo Molnar <mingo@...hat.com>,
Namhyung Kim <namhyung@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>,
Adrian Hunter <adrian.hunter@...el.com>,
Kan Liang <kan.liang@...ux.intel.com>,
Athira Jajeev <atrajeev@...ux.vnet.ibm.com>,
James Clark <james.clark@...aro.org>,
Dominique Martinet <asmadeus@...ewreck.org>,
Yang Li <yang.lee@...ux.alibaba.com>,
Colin Ian King <colin.i.king@...il.com>,
Yang Jihong <yangjihong@...edance.com>,
"Steinar H. Gunderson" <sesse@...gle.com>,
Oliver Upton <oliver.upton@...ux.dev>,
Ilkka Koskinen <ilkka@...amperecomputing.com>,
Ze Gao <zegao2021@...il.com>, Weilin Wang <weilin.wang@...el.com>,
Ben Gainey <ben.gainey@....com>,
zhaimingbing <zhaimingbing@...s.chinamobile.com>,
Zixian Cai <fzczx123@...il.com>, Andi Kleen <ak@...ux.intel.com>,
Paran Lee <p4ranlee@...il.com>,
Thomas Falcon <thomas.falcon@...el.com>,
linux-kernel@...r.kernel.org, linux-perf-users@...r.kernel.org,
"Steven Rostedt (Google)" <rostedt@...dmis.org>
Subject: Re: [PATCH v2 6/6] perf tests: Enable tests disabled due to
tracepoint parsing
On Sat, Nov 02, 2024 at 09:54:00AM -0700, Ian Rogers wrote:
> Tracepoint parsing required libtraceevent but no longer does. Remove
> the Build logic and #ifdefs that caused the tests not to be run. Test
> code that directly uses libtraceevent is still guarded.
Tested-by: Arnaldo Carvalho de Melo <acme@...hat.com>
- Arnaldo
root@x1:~# perf check feature libtraceevent
libtraceevent: [ OFF ] # HAVE_LIBTRACEEVENT
root@x1:~# perf test openat
2: Detect openat syscall event : Ok
3: Detect openat syscall event on all cpus : Ok
root@x1:~# perf test -vv openat
2: Detect openat syscall event:
--- start ---
test child forked, pid 820095
------------------------------------------------------------
perf_event_attr:
Using CPUID GenuineIntel-6-BA-3
type 2 (tracepoint)
size 136
config 0x2e6 (syscalls:sys_enter_openat)
{ sample_period, sample_freq } 1
sample_type TIME|CPU|PERIOD|RAW
------------------------------------------------------------
sys_perf_event_open: pid 820095 cpu -1 group_fd -1 flags 0x8 = 3
---- end(0) ----
2: Detect openat syscall event : Ok
3: Detect openat syscall event on all cpus:
--- start ---
test child forked, pid 820096
------------------------------------------------------------
perf_event_attr:
Using CPUID GenuineIntel-6-BA-3
type 2 (tracepoint)
size 136
config 0x2e6 (syscalls:sys_enter_openat)
{ sample_period, sample_freq } 1
sample_type TIME|CPU|PERIOD|RAW
------------------------------------------------------------
sys_perf_event_open: pid 820096 cpu 0 group_fd -1 flags 0x8 = 8
sys_perf_event_open: pid 820096 cpu 1 group_fd -1 flags 0x8 = 9
sys_perf_event_open: pid 820096 cpu 2 group_fd -1 flags 0x8 = 10
sys_perf_event_open: pid 820096 cpu 3 group_fd -1 flags 0x8 = 11
sys_perf_event_open: pid 820096 cpu 4 group_fd -1 flags 0x8 = 12
sys_perf_event_open: pid 820096 cpu 5 group_fd -1 flags 0x8 = 13
sys_perf_event_open: pid 820096 cpu 6 group_fd -1 flags 0x8 = 14
sys_perf_event_open: pid 820096 cpu 7 group_fd -1 flags 0x8 = 15
sys_perf_event_open: pid 820096 cpu 8 group_fd -1 flags 0x8 = 16
sys_perf_event_open: pid 820096 cpu 9 group_fd -1 flags 0x8 = 17
sys_perf_event_open: pid 820096 cpu 10 group_fd -1 flags 0x8 = 18
sys_perf_event_open: pid 820096 cpu 11 group_fd -1 flags 0x8 = 19
---- end(0) ----
3: Detect openat syscall event on all cpus : Ok
root@x1:~#
Powered by blists - more mailing lists