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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 06 Sep 2010 14:34:38 +0300
From:	Avi Kivity <avi@...hat.com>
To:	Peter Zijlstra <peterz@...radead.org>
CC:	linux-perf-users@...r.kernel.org,
	linux-kernel <linux-kernel@...r.kernel.org>,
	Ingo Molnar <mingo@...e.hu>
Subject: Re: disabling group leader perf_event

  On 09/06/2010 02:24 PM, Peter Zijlstra wrote:
> On Mon, 2010-09-06 at 12:12 +0300, Avi Kivity wrote:
>> If I read the code correctly, disabling a group leader perf_event will
>> disable the entire group.
>>
>> Is this correct?
> Yeah, pretty much.

Well, I never liked group_leader style APIs.  I like different types for 
the container and the contained.  But such is not unix.

>> If so, how can I disable just the event itself?  Can I allocate a dummy
>> invent for the group leader so I can enable and disable each perf_event
>> in the group individually?
> Which makes me wonder why you use groups in the first place.

Basically, to read() all events in one go.  I have many of them.

My current problem is that I have an event (kvm_exit) which I want to 
drill down by looking at a field (exit_reason).  So I create lots of 
separate perf_events with a filter for each reason: 
kvm_exit(exit_reason==0), kvm_exit(exit_reason==1), etc.  But filters 
are fairly slow (can have ~60 such events on AMD), so I want to make 
this drill-down optional.

Current plan is to have a group for the basic events and another group 
for the drilldown events (each per-cpu), and activate the drilldown 
group on user request.  perf will be able to schedule both groups 
concurrently since they only contain tracepoints, yes?

-- 
error compiling committee.c: too many arguments to function

--
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