pmu.c (d06593aa00b2bb1cc1ac9d88157bb8db0ac17872) pmu.c (710dffc969023315c3c32717dc08b543012e60d8)
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/list.h>
3#include <linux/compiler.h>
4#include <linux/string.h>
5#include <linux/zalloc.h>
6#include <linux/ctype.h>
7#include <sys/types.h>
8#include <fcntl.h>

--- 1413 unchanged lines hidden (view full) ---

1422
1423bool perf_pmu__supports_legacy_cache(const struct perf_pmu *pmu)
1424{
1425 return pmu->is_core;
1426}
1427
1428bool perf_pmu__auto_merge_stats(const struct perf_pmu *pmu)
1429{
1// SPDX-License-Identifier: GPL-2.0
2#include <linux/list.h>
3#include <linux/compiler.h>
4#include <linux/string.h>
5#include <linux/zalloc.h>
6#include <linux/ctype.h>
7#include <sys/types.h>
8#include <fcntl.h>

--- 1413 unchanged lines hidden (view full) ---

1422
1423bool perf_pmu__supports_legacy_cache(const struct perf_pmu *pmu)
1424{
1425 return pmu->is_core;
1426}
1427
1428bool perf_pmu__auto_merge_stats(const struct perf_pmu *pmu)
1429{
1430 return pmu->is_core && perf_pmus__num_core_pmus() == 1;
1430 return !pmu->is_core || perf_pmus__num_core_pmus() == 1;
1431}
1432
1433bool perf_pmu__have_event(const struct perf_pmu *pmu, const char *name)
1434{
1435 struct perf_pmu_alias *alias;
1436
1437 list_for_each_entry(alias, &pmu->aliases, list) {
1438 if (!strcmp(alias->name, name))

--- 318 unchanged lines hidden ---
1431}
1432
1433bool perf_pmu__have_event(const struct perf_pmu *pmu, const char *name)
1434{
1435 struct perf_pmu_alias *alias;
1436
1437 list_for_each_entry(alias, &pmu->aliases, list) {
1438 if (!strcmp(alias->name, name))

--- 318 unchanged lines hidden ---