Skip to contentSkip to conversation

perf_counter: Rename list_entry -> group_entry, counter_list -> group_list

tip:perfcounters/rename tip-bot for Ingo Molnar 1 participant 1 message Sep 21, 2009

lore
Share & tools
lore
#0 lore raw
Commit-ID:  65abc8653c282ded3dbdb9ec1227784140ba28cd
Gitweb:     http://git.kernel.org/tip/65abc8653c282ded3dbdb9ec1227784140ba28cd
Author:     Ingo Molnar <[email protected]>
AuthorDate: Mon, 21 Sep 2009 10:18:27 +0200
Committer:  Ingo Molnar <[email protected]>
CommitDate: Mon, 21 Sep 2009 12:54:51 +0200

perf_counter: Rename list_entry -> group_entry, counter_list -> group_list

This is in preparation of the big rename, but also makes sense in a standalone way: 'list_entry' is a bad name as we already have a list_entry() in list.h.

Also, the 'counter list' is too vague, it doesnt tell us the purpose of that list.

Clarify these names to show that it's all about the group hiearchy.

Cc Paul Mackerras <[email protected]>
Cc Frederic Weisbecker <[email protected]>

LKML-Reference: <new-submission>

---
 include/linux/perf_counter.h |    4 +-
 kernel/perf_counter.c        |   71 ++++++++++++++++++++---------------------
 2 files changed, 37 insertions(+), 38 deletions(-)
include/linux/perf_counter.h +2 -2
index 740caad..f648627 100644
@@ -543,7 +543,7 @@ struct perf_pending_entry {
  */
 struct perf_counter {
 #ifdef CONFIG_PERF_COUNTERS
-	struct list_head		list_entry;
+	struct list_head		group_entry;
 	struct list_head		event_entry;
 	struct list_head		sibling_list;
 	int				nr_siblings;
@@ -649,7 +649,7 @@ struct perf_counter_context {
 	 */
 	struct mutex			mutex;
 
-	struct list_head		counter_list;
+	struct list_head		group_list;
 	struct list_head		event_list;
 	int				nr_counters;
 	int				nr_active;
kernel/perf_counter.c +35 -36

258 lines not on this page · raw message