Skip to contentSkip to conversation

perf: Remove the swevent hash-table from the cpu context

tip:perf/core tip-bot for Peter Zijlstra 1 participant 1 message Sep 9, 2010 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  b28ab83c595e767f2028276b7398d17f2253cec0
Gitweb:     http://git.kernel.org/tip/b28ab83c595e767f2028276b7398d17f2253cec0
Author:     Peter Zijlstra <[email protected]>
AuthorDate: Mon, 6 Sep 2010 14:48:15 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Thu, 9 Sep 2010 20:46:32 +0200

perf: Remove the swevent hash-table from the cpu context

Separate the swevent hash-table from the cpu_context bits in preparation for per pmu cpu contexts.

This keeps the swevent hash a global entity.

Cc paulus <[email protected]>
Cc stephane eranian <[email protected]>
Cc Robert Richter <[email protected]>
Cc Frederic Weisbecker <[email protected]>
Cc Lin Ming <[email protected]>
Cc Yanmin <[email protected]>

LKML-Reference: <new-submission>

---
 include/linux/perf_event.h |    6 ---
 kernel/perf_event.c        |  104 ++++++++++++++++++++++++-------------------
 2 files changed, 58 insertions(+), 52 deletions(-)
include/linux/perf_event.h +0 -6
index b22176d..4ab4f0c 100644
@@ -861,12 +861,6 @@ struct perf_cpu_context {
 	struct perf_event_context	*task_ctx;
 	int				active_oncpu;
 	int				exclusive;
-	struct swevent_hlist		*swevent_hlist;
-	struct mutex			hlist_mutex;
-	int				hlist_refcount;
-
-	/* Recursion avoidance in each contexts */
-	int				recursion[PERF_NR_CONTEXTS];
 };
 
 struct perf_output_handle {
kernel/perf_event.c +58 -46

243 lines not on this page · raw message