lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 6 May 2022 22:34:05 -0700 From: Ian Rogers <irogers@...gle.com> To: 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@...nel.org>, Namhyung Kim <namhyung@...nel.org>, Riccardo Mancini <rickyman7@...il.com>, Kim Phillips <kim.phillips@....com>, Madhavan Srinivasan <maddy@...ux.ibm.com>, Shunsuke Nakamura <nakamura.shun@...itsu.com>, Florian Fischer <florian.fischer@...q.space>, Andi Kleen <ak@...ux.intel.com>, John Garry <john.garry@...wei.com>, Zhengjun Xing <zhengjun.xing@...ux.intel.com>, Adrian Hunter <adrian.hunter@...el.com>, James Clark <james.clark@....com>, linux-perf-users@...r.kernel.org, linux-kernel@...r.kernel.org Cc: Stephane Eranian <eranian@...gle.com>, Ian Rogers <irogers@...gle.com> Subject: [PATCH 0/5] Revert metric hybrid events, fix tools events Hybrid metrics place a PMU at the end of the parse string. This is also where tool events are placed. The behavior of the parse string isn't clear and so revert the change for now. commit 75eafc970bd9 ("perf list: Print all available tool events") had an off-by-1 error. Try to separate the tool event enum logic from evsels. Also add a for loop helper to simplify working with a variety of tool events. Add support to metrics for more tool events than just duration_time. Make the sharing logic only look to add for sharing potentially used tool events, found by scanning the list of metrics. Ian Rogers (5): Revert "perf stat: Support metrics with hybrid events" perf evsel: Constify a few arrays perf evsel: Add tool event helpers perf metrics: Support all tool events perf metrics: Don't add all tool events for sharing tools/perf/tests/evsel-roundtrip-name.c | 2 +- tools/perf/util/evsel.c | 53 +++- tools/perf/util/evsel.h | 22 +- tools/perf/util/metricgroup.c | 373 +++++++----------------- tools/perf/util/parse-events.c | 2 +- tools/perf/util/stat-display.c | 8 +- tools/perf/util/stat-shadow.c | 27 +- 7 files changed, 180 insertions(+), 307 deletions(-) -- 2.36.0.512.ge40c2bad7a-goog
Powered by blists - more mailing lists