perf tools: Annotate PMU related list_head members with type info
authorCody P Schafer <dev@codyps.com>
Fri, 15 Aug 2014 07:26:14 +0000 (00:26 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 15 Aug 2014 13:42:40 +0000 (10:42 -0300)
So that we can more readily understand in which list heads structs are
stored into.

Signed-off-by: Cody P Schafer <cody@linux.vnet.ibm.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: Cody P Schafer <dev@codyps.com>
Cc: Haren Myneni <hbabu@us.ibm.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Michael Ellerman <michaele@au1.ibm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: http://lkml.kernel.org/r/1408087583-32239-6-git-send-email-sukadev@linux.vnet.ibm.com
Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/pmu.c
tools/perf/util/pmu.h

index 7a811eb61f75fc9b00205fd778c30cc417b0f887..9bf5827505616c59f4278e5cbe3e6ee85613ae1a 100644 (file)
@@ -14,8 +14,8 @@
 
 struct perf_pmu_alias {
        char *name;
-       struct list_head terms;
-       struct list_head list;
+       struct list_head terms; /* HEAD struct parse_events_term -> list */
+       struct list_head list;  /* ELEM */
        char unit[UNIT_MAX_LEN+1];
        double scale;
 };
index c14a543ce1f3b563a6debfb0879c910003a2ac15..1c1e2eecbe1fb5240e77013ccc6c106f83a85242 100644 (file)
@@ -17,9 +17,9 @@ struct perf_pmu {
        char *name;
        __u32 type;
        struct cpu_map *cpus;
-       struct list_head format;
-       struct list_head aliases;
-       struct list_head list;
+       struct list_head format;  /* HEAD struct perf_pmu_format -> list */
+       struct list_head aliases; /* HEAD struct perf_pmu_alias -> list */
+       struct list_head list;    /* ELEM */
 };
 
 struct perf_pmu *perf_pmu__find(const char *name);