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: Tue, 17 Mar 2020 16:41:04 +0000 From: John Garry <john.garry@...wei.com> To: Jiri Olsa <jolsa@...hat.com> CC: <peterz@...radead.org>, <mingo@...hat.com>, <acme@...nel.org>, <mark.rutland@....com>, <alexander.shishkin@...ux.intel.com>, <namhyung@...nel.org>, <will@...nel.org>, <ak@...ux.intel.com>, <linuxarm@...wei.com>, <linux-kernel@...r.kernel.org>, <james.clark@....com>, <qiangqing.zhang@....com> Subject: Re: [PATCH v2 7/7] perf test: Test pmu-events aliases On 17/03/2020 16:20, Jiri Olsa wrote: > On Tue, Mar 17, 2020 at 07:02:19PM +0800, John Garry wrote: > > SNIP > >> struct perf_pmu_test_event { >> struct pmu_event event; >> + >> + /* extra events for aliases */ >> + const char *alias_str; >> + >> + /* >> + * Note: For when PublicDescription does not exist in the JSON, we >> + * will have no long_desc in pmu_event.long_desc, but long_desc may >> + * be set in the alias. >> + */ >> + const char *alias_long_desc; >> }; >> + >> static struct perf_pmu_test_event test_cpu_events[] = { >> { >> .event = { >> @@ -20,6 +31,8 @@ static struct perf_pmu_test_event test_cpu_events[] = { >> .desc = "L1 BTB Correction", >> .topic = "branch", >> }, >> + .alias_str = "event=0x8a", >> + .alias_long_desc = "L1 BTB Correction", >> }, >> { >> .event = { >> @@ -28,6 +41,8 @@ static struct perf_pmu_test_event test_cpu_events[] = { >> .desc = "L2 BTB Correction", >> .topic = "branch", >> }, >> + .alias_str = "event=0x8b", >> + .alias_long_desc = "L2 BTB Correction", >> }, >> { >> .event = { >> @@ -36,6 +51,8 @@ static struct perf_pmu_test_event test_cpu_events[] = { >> .desc = "Number of segment register loads", >> .topic = "other", >> }, >> + .alias_str = "umask=0x80,(null)=0x30d40,event=0x6", > > ah so we are using other pmus because of the format definitions > Hi jirka, > why is there the '(null)' in there? > Well this is just coming from the generated alias string in the pmu code, and it does not seem to be handling "period" argument properly. It needs to be checked. Thanks, John
Powered by blists - more mailing lists