lkml.org 
[lkml]   [2013]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 1/2] perf tools: Add support for pinned modifier
On Tue, Aug 06, 2013 at 11:28:05PM +1000, Michael Ellerman wrote:

SNIP

>
> while (*p) {
> @@ -812,6 +818,9 @@ int parse_events__modifier_event(struct list_head *list, char *str, bool add)
> evsel->attr.exclude_guest = mod.eG;
> evsel->exclude_GH = mod.exclude_GH;
> evsel->sample_read = mod.sample_read;
> +
> + if (evsel->leader == evsel)
> + evsel->attr.pinned = mod.pinned;

nitpick, we have perf_evsel__is_group_leader for this check

jirka


\
 
 \ /
  Last update: 2013-08-06 16:21    [W:0.108 / U:1.024 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site