/kernel/linux/linux-6.6/tools/perf/arch/arm/util/ |
H A D | auxtrace.c | 17 #include "../../../util/pmus.h" 102 static struct perf_pmu *find_pmu_for_event(struct perf_pmu **pmus, in find_pmu_for_event() argument 107 if (!pmus) in find_pmu_for_event() 111 if (evsel->core.attr.type == pmus[i]->type) in find_pmu_for_event() 112 return pmus[i]; in find_pmu_for_event()
|
/kernel/linux/linux-6.6/arch/x86/events/intel/ |
H A D | uncore.c | 958 struct intel_uncore_pmu *pmu = type->pmus; in uncore_type_exit() 969 kfree(type->pmus); in uncore_type_exit() 970 type->pmus = NULL; in uncore_type_exit() 988 struct intel_uncore_pmu *pmus; in uncore_type_init() local 992 pmus = kcalloc(type->num_boxes, sizeof(*pmus), GFP_KERNEL); in uncore_type_init() 993 if (!pmus) in uncore_type_init() 999 pmus[i].func_id = setid ? i : -1; in uncore_type_init() 1000 pmus[i].pmu_idx = i; in uncore_type_init() 1001 pmus[ in uncore_type_init() [all...] |
H A D | uncore.h | 82 struct intel_uncore_pmu *pmus; member
|
/kernel/linux/linux-5.10/arch/x86/events/intel/ |
H A D | uncore.c | 894 struct intel_uncore_pmu *pmu = type->pmus; in uncore_type_exit() 905 kfree(type->pmus); in uncore_type_exit() 906 type->pmus = NULL; in uncore_type_exit() 920 struct intel_uncore_pmu *pmus; in uncore_type_init() local 924 pmus = kcalloc(type->num_boxes, sizeof(*pmus), GFP_KERNEL); in uncore_type_init() 925 if (!pmus) in uncore_type_init() 931 pmus[i].func_id = setid ? i : -1; in uncore_type_init() 932 pmus[i].pmu_idx = i; in uncore_type_init() 933 pmus[ in uncore_type_init() [all...] |
H A D | uncore.h | 71 struct intel_uncore_pmu *pmus; member
|
/kernel/linux/linux-6.6/tools/perf/pmu-events/ |
H A D | jevents.py | 473 pmus = set() 483 pmus.add((event.pmu, pmu_name)) 493 for (pmu, tbl_pmu) in sorted(pmus): 528 pmus = set() 538 pmus.add((metric.pmu, pmu_name)) 548 for (pmu, tbl_pmu) in sorted(pmus): 639 const struct pmu_table_entry *pmus; 645 const struct pmu_table_entry *pmus; 676 \t\t.pmus = pmu_events__test_soc_cpu, 680 \t\t.pmus [all...] |
/kernel/linux/linux-5.10/arch/x86/events/ |
H A D | rapl.c | 118 struct rapl_pmu *pmus[]; member 150 return dieid < rapl_pmus->maxdie ? rapl_pmus->pmus[dieid] : NULL; in cpu_to_rapl_pmu() 582 rapl_pmus->pmus[topology_logical_die_id(cpu)] = pmu; in rapl_cpu_online() 667 kfree(rapl_pmus->pmus[i]); in cleanup_rapl_pmus()
|
/kernel/linux/linux-6.6/arch/x86/events/ |
H A D | rapl.c | 118 struct rapl_pmu *pmus[]; member 150 return dieid < rapl_pmus->maxdie ? rapl_pmus->pmus[dieid] : NULL; in cpu_to_rapl_pmu() 585 rapl_pmus->pmus[topology_logical_die_id(cpu)] = pmu; in rapl_cpu_online() 666 kfree(rapl_pmus->pmus[i]); in cleanup_rapl_pmus()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | pmu.c | 41 static LIST_HEAD(pmus); 554 /* Add all pmus in sysfs to pmu list: */ 575 /* add to static LIST_HEAD(pmus): */ in pmu_read_sysfs() 858 list_add_tail(&pmu->list, &pmus); in pmu_lookup() 886 list_for_each_entry(pmu, &pmus, list) in pmu_find() 897 list_for_each_entry(pmu, &pmus, list) in perf_pmu__find_by_type() 912 pmu = list_prepare_entry(pmu, &pmus, list); in perf_pmu__scan() 914 list_for_each_entry_continue(pmu, &pmus, list) in perf_pmu__scan()
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | pmu.h | 144 /** @list: Element on pmus list in pmu.c. */ 264 struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char *lookup_name);
|
H A D | pmu.c | 21 #include "pmus.h" 964 struct perf_pmu *perf_pmu__lookup(struct list_head *pmus, int dirfd, const char *lookup_name) in perf_pmu__lookup() argument 1015 list_add_tail(&pmu->list, pmus); in perf_pmu__lookup()
|
/kernel/linux/linux-5.10/drivers/perf/ |
H A D | xgene_pmu.c | 1950 xgene_pmu_dev_cleanup(struct xgene_pmu *xgene_pmu, struct list_head *pmus) in xgene_pmu_dev_cleanup() argument 1954 list_for_each_entry(ctx, pmus, next) { in xgene_pmu_dev_cleanup()
|
/kernel/linux/linux-6.6/drivers/perf/ |
H A D | xgene_pmu.c | 1942 xgene_pmu_dev_cleanup(struct xgene_pmu *xgene_pmu, struct list_head *pmus) in xgene_pmu_dev_cleanup() argument 1946 list_for_each_entry(ctx, pmus, next) { in xgene_pmu_dev_cleanup()
|
/kernel/linux/linux-5.10/kernel/events/ |
H A D | core.c | 400 static LIST_HEAD(pmus); 4866 * The following implement mutual exclusion of events on "exclusive" pmus 4867 * (PERF_PMU_CAP_EXCLUSIVE). Such pmus can only have one event scheduled 10766 list_for_each_entry(pmu, &pmus, entry) { in find_pmu_context() 11054 list_add_rcu(&pmu->entry, &pmus); in perf_pmu_register() 11056 list_add_tail_rcu(&pmu->entry, &pmus); in perf_pmu_register() 11200 list_for_each_entry_rcu(pmu, &pmus, entry, lockdep_is_held(&pmus_srcu)) { in perf_init_event() 13141 list_for_each_entry(pmu, &pmus, entry) { in perf_event_exit_cpu_context() 13169 list_for_each_entry(pmu, &pmus, entry) { in perf_event_init_cpu() 13258 list_for_each_entry(pmu, &pmus, entr in perf_event_sysfs_init() [all...] |
/kernel/linux/linux-6.6/kernel/events/ |
H A D | core.c | 406 static LIST_HEAD(pmus); 5090 * The following implement mutual exclusion of events on "exclusive" pmus 5091 * (PERF_PMU_CAP_EXCLUSIVE). Such pmus can only have one event scheduled 11573 list_add_rcu(&pmu->entry, &pmus); in perf_pmu_register() 11686 * pmus overwrites event->attr.type to forward event to another pmu. in perf_init_event() 11734 list_for_each_entry_rcu(pmu, &pmus, entry, lockdep_is_held(&pmus_srcu)) { in perf_init_event() 12644 /* Don't allow group of multiple hw events from different pmus */ in SYSCALL_DEFINE5() 13786 list_for_each_entry(pmu, &pmus, entry) { in perf_event_sysfs_init()
|