[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20160804144325.GP6862@twins.programming.kicks-ass.net>
Date: Thu, 4 Aug 2016 16:43:25 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: David Carrillo-Cisneros <davidcc@...gle.com>
Cc: linux-kernel@...r.kernel.org, "x86@...nel.org" <x86@...nel.org>,
Ingo Molnar <mingo@...hat.com>,
Thomas Gleixner <tglx@...utronix.de>,
Andi Kleen <ak@...ux.intel.com>,
Kan Liang <kan.liang@...el.com>, Paul Turner <pjt@...gle.com>,
Stephane Eranian <eranian@...gle.com>
Subject: Re: [PATCH 2/3] perf/core: introduce pmu_event_flags and
PMUEF_READ_CPU_PKG
On Mon, Aug 01, 2016 at 07:44:54PM -0700, David Carrillo-Cisneros wrote:
> +++ b/include/linux/perf_event.h
> @@ -681,9 +681,21 @@ struct perf_event {
> #endif
>
> struct list_head sb_list;
> +
> + /* Per-event flags to generic code set by PMU. */
> + int pmu_event_flags;
> +
It appears to me we already have group_flags and attach_state which both
are serialized by ctx->lock.
Could we maybe merge the lot into one flags field?
Powered by blists - more mailing lists