[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20180608224652.2140823-1-songliubraving@fb.com>
Date: Fri, 8 Jun 2018 15:46:51 -0700
From: Song Liu <songliubraving@...com>
To: <linux-kernel@...r.kernel.org>
CC: Song Liu <songliubraving@...com>, <kernel-team@...com>,
Tejun Heo <tj@...nel.org>,
Peter Zijlstra <peterz@...radead.org>,
Jiri Olsa <jolsa@...nel.org>,
Alexey Budankov <alexey.budankov@...ux.intel.com>
Subject: [PATCH] perf: Sharing PMU counters across compatible events
This is to follow up earlier discussion on sharing hardware PMU counters
across compatible events:
https://marc.info/?t=151213803600016
https://marc.info/?t=152547569200001
This version limits PMU sharing to events within same ctx. As a result,
compatible events are not evaluated during task schedule. This vesion also
limits PMU sharing to hardware counting events. From our discussion with
internal users, this is sufficient for most cases.
This version introduces virtual master event. The virtual master event
does require careful handling. But it is makes the logic of event add/del
cleaner.
This version has been stable in my tests.
Cc: Tejun Heo <tj@...nel.org>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Jiri Olsa <jolsa@...nel.org>
Cc: Alexey Budankov <alexey.budankov@...ux.intel.com>
Song Liu (1):
perf: Sharing PMU counters across compatible events
include/linux/perf_event.h | 61 ++++++++++
kernel/events/core.c | 284 +++++++++++++++++++++++++++++++++++++++++++--
2 files changed, 335 insertions(+), 10 deletions(-)
--
2.9.5
Powered by blists - more mailing lists