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
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YFM/EBq3gAZTh4m3@krava>
Date:   Thu, 18 Mar 2021 12:52:48 +0100
From:   Jiri Olsa <jolsa@...hat.com>
To:     "Jin, Yao" <yao.jin@...ux.intel.com>
Cc:     acme@...nel.org, jolsa@...nel.org, peterz@...radead.org,
        mingo@...hat.com, alexander.shishkin@...ux.intel.com,
        Linux-kernel@...r.kernel.org, ak@...ux.intel.com,
        kan.liang@...el.com, yao.jin@...el.com
Subject: Re: [PATCH v2 16/27] perf evlist: Warn as events from different
 hybrid PMUs in a group

On Tue, Mar 16, 2021 at 01:25:29PM +0800, Jin, Yao wrote:
> Hi Jiri,
> 
> On 3/16/2021 7:03 AM, Jiri Olsa wrote:
> > On Thu, Mar 11, 2021 at 03:07:31PM +0800, Jin Yao wrote:
> > 
> > SNIP
> > 
> > >   				goto try_again;
> > >   			}
> > > +
> > > +			if (errno == EINVAL && perf_pmu__hybrid_exist())
> > > +				evlist__warn_hybrid_group(evlist);
> > >   			rc = -errno;
> > >   			evsel__open_strerror(pos, &opts->target, errno, msg, sizeof(msg));
> > >   			ui__error("%s\n", msg);
> > > diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
> > > index 7a732508b2b4..6f780a039db0 100644
> > > --- a/tools/perf/builtin-stat.c
> > > +++ b/tools/perf/builtin-stat.c
> > > @@ -239,6 +239,9 @@ static void evlist__check_cpu_maps(struct evlist *evlist)
> > >   	struct evsel *evsel, *pos, *leader;
> > >   	char buf[1024];
> > > +	if (evlist__hybrid_exist(evlist))
> > > +		return;
> > 
> > this should be in separate patch and explained
> > 
> 
> Now I have another idea. If a group consists of atom events and core events,
> we still follow current disabling group solution?
> 
> I mean removing following code:
> 
> if (evlist__hybrid_exist(evlist))
> 	return;
> 
> evlist__check_cpu_maps then continues running and disabling the group. But
> also report with a warning that says "WARNING: Group has events from
> different hybrid PMUs".
> 
> Do you like this way?

I'm not sure I follow completely.. would be best over the code

jirka

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ