pmu.c (0e4daea31d8312dd9f957a62717d4b5f31ef494c) | pmu.c (1eaf496ed386934f1c2439a120fe84a05194f91a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#include <internal/cpumap.h> 4#include "../../../util/cpumap.h" 5#include "../../../util/pmu.h" | 1// SPDX-License-Identifier: GPL-2.0 2 3#include <internal/cpumap.h> 4#include "../../../util/cpumap.h" 5#include "../../../util/pmu.h" |
6#include "../../../util/pmus.h" |
|
6#include <api/fs/fs.h> 7#include <math.h> 8 9static struct perf_pmu *pmu__find_core_pmu(void) 10{ 11 struct perf_pmu *pmu = NULL; 12 | 7#include <api/fs/fs.h> 8#include <math.h> 9 10static struct perf_pmu *pmu__find_core_pmu(void) 11{ 12 struct perf_pmu *pmu = NULL; 13 |
13 while ((pmu = perf_pmu__scan(pmu))) { | 14 while ((pmu = perf_pmus__scan(pmu))) { |
14 if (!is_pmu_core(pmu->name)) 15 continue; 16 17 /* 18 * The cpumap should cover all CPUs. Otherwise, some CPUs may 19 * not support some events or have different event IDs. 20 */ 21 if (RC_CHK_ACCESS(pmu->cpus)->nr != cpu__max_cpu().cpu) --- 45 unchanged lines hidden --- | 15 if (!is_pmu_core(pmu->name)) 16 continue; 17 18 /* 19 * The cpumap should cover all CPUs. Otherwise, some CPUs may 20 * not support some events or have different event IDs. 21 */ 22 if (RC_CHK_ACCESS(pmu->cpus)->nr != cpu__max_cpu().cpu) --- 45 unchanged lines hidden --- |