[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20141008103250.GO14343@console-pimps.org>
Date: Wed, 8 Oct 2014 11:32:50 +0100
From: Matt Fleming <matt@...sole-pimps.org>
To: Peter Zijlstra <peterz@...radead.org>
Cc: Ingo Molnar <mingo@...nel.org>, Jiri Olsa <jolsa@...hat.com>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Thomas Gleixner <tglx@...utronix.de>,
linux-kernel@...r.kernel.org, "H. Peter Anvin" <hpa@...or.com>,
Matt Fleming <matt.fleming@...el.com>,
Arnaldo Carvalho de Melo <acme@...hat.com>
Subject: Re: [PATCH 06/11] perf: Move cgroup init before PMU ->event_init()
On Tue, 07 Oct, at 09:34:24PM, Peter Zijlstra wrote:
> On Wed, Sep 24, 2014 at 03:04:10PM +0100, Matt Fleming wrote:
> > +++ b/kernel/events/core.c
> > @@ -6859,7 +6859,7 @@ perf_event_alloc(struct perf_event_attr *attr, int cpu,
> > struct perf_event *group_leader,
> > struct perf_event *parent_event,
> > perf_overflow_handler_t overflow_handler,
> > - void *context)
> > + void *context, bool cgroup, pid_t pid)
> > {
> > struct pmu *pmu;
> > struct perf_event *event;
>
> I don't get this extension, why a bool and pid_t ?
So that it's possible to figure out whether we need to call
perf_cgroup_connect().
Oh, why not just 'int fd', you mean? Ermm... yeah that would be better.
--
Matt Fleming, Intel Open Source Technology Center
--
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