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: <1354201751.1630.45.camel@leonhard>
Date:	Fri, 30 Nov 2012 00:09:11 +0900
From:	Namhyung Kim <namhyung@...nel.org>
To:	Jiri Olsa <jolsa@...hat.com>
Cc:	Arnaldo Carvalho de Melo <acme@...stprotocols.net>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Paul Mackerras <paulus@...ba.org>,
	Ingo Molnar <mingo@...nel.org>,
	LKML <linux-kernel@...r.kernel.org>,
	Stephane Eranian <eranian@...gle.com>,
	Andi Kleen <andi@...stfloor.org>,
	Namhyung Kim <namhyung.kim@....com>
Subject: Re: [PATCH 03/18] perf tools: Keep group information

2012-11-29 (목), 16:02 +0100, Jiri Olsa:
> On Thu, Nov 29, 2012 at 11:58:54PM +0900, Namhyung Kim wrote:
> > 2012-11-29 (목), 15:33 +0100, Jiri Olsa:
> > > On Thu, Nov 29, 2012 at 03:38:31PM +0900, Namhyung Kim wrote:
> > > > From: Namhyung Kim <namhyung.kim@....com>
> > > 
> > > SNIP
> > > 
> > > > --- a/tools/perf/util/evlist.h
> > > > +++ b/tools/perf/util/evlist.h
> > > > @@ -21,6 +21,7 @@ struct perf_evlist {
> > > >  	struct list_head entries;
> > > >  	struct hlist_head heads[PERF_EVLIST__HLIST_SIZE];
> > > >  	int		 nr_entries;
> > > > +	int		 nr_groups;
> > > >  	int		 nr_fds;
> > > >  	int		 nr_mmaps;
> > > >  	int		 mmap_len;
> > > > diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
> > > > index 46c8004ca56b..887834ed0af1 100644
> > > > --- a/tools/perf/util/evsel.h
> > > > +++ b/tools/perf/util/evsel.h
> > > > @@ -73,6 +73,7 @@ struct perf_evsel {
> > > >  	bool 			needs_swap;
> > > >  	/* parse modifier helper */
> > > >  	int			exclude_GH;
> > > > +	int			nr_members;
> > > >  	struct perf_evsel	*leader;
> > > >  	char			*group_name;
> > > >  };
> > > 
> > > we could test both new fields in existing group tests
> > > 
> > > > @@ -230,4 +231,9 @@ static inline bool perf_evsel__is_group_leader(const struct perf_evsel *evsel)
> > > >  {
> > > >  	return evsel->leader == evsel;
> > > 
> > 
> > You mean adding 'evsel->nr_members > 1' to this function?  For some
> > reason, I'd like to treat non-group events as group leaders so I dropped
> > that check from the function.
> 
> nope, the change is ok, I meant updating automated tests in tests/parse-events.c

Ah, okay.  Always forgot to update the test. :(  Will add.

Thanks,
Namhyung



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ