Home
last modified time | relevance | path

Searched refs:idxd_pmu (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/dma/idxd/
Dperfmon.c50 static bool is_idxd_event(struct idxd_pmu *idxd_pmu, struct perf_event *event) in is_idxd_event() argument
52 return &idxd_pmu->pmu == event->pmu; in is_idxd_event()
55 static int perfmon_collect_events(struct idxd_pmu *idxd_pmu, in perfmon_collect_events() argument
62 max_count = idxd_pmu->n_counters; in perfmon_collect_events()
63 n = idxd_pmu->n_events; in perfmon_collect_events()
68 if (is_idxd_event(idxd_pmu, leader)) { in perfmon_collect_events()
69 idxd_pmu->event_list[n] = leader; in perfmon_collect_events()
70 idxd_pmu->event_list[n]->hw.idx = n; in perfmon_collect_events()
78 if (!is_idxd_event(idxd_pmu, event) || in perfmon_collect_events()
85 idxd_pmu->event_list[n] = event; in perfmon_collect_events()
[all …]
Dperfmon.h19 static inline struct idxd_pmu *event_to_pmu(struct perf_event *event) in event_to_pmu()
21 struct idxd_pmu *idxd_pmu; in event_to_pmu() local
25 idxd_pmu = container_of(pmu, struct idxd_pmu, pmu); in event_to_pmu()
27 return idxd_pmu; in event_to_pmu()
32 struct idxd_pmu *idxd_pmu; in event_to_idxd() local
36 idxd_pmu = container_of(pmu, struct idxd_pmu, pmu); in event_to_idxd()
38 return idxd_pmu->idxd; in event_to_idxd()
43 struct idxd_pmu *idxd_pmu; in pmu_to_idxd() local
45 idxd_pmu = container_of(pmu, struct idxd_pmu, pmu); in pmu_to_idxd()
47 return idxd_pmu->idxd; in pmu_to_idxd()
Didxd.h117 struct idxd_pmu { struct
367 struct idxd_pmu *idxd_pmu; member