Merge tag 'trace-printf-v6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/trace...
[drm/drm-misc.git] / tools / perf / arch / s390 / util / pmu.c
blob886c30e001fa80b2848142d572df9da9c16bfcba
1 // SPDX-License-Identifier: GPL-2.0
3 /*
4 * Copyright IBM Corp. 2023
5 * Author(s): Thomas Richter <tmricht@linux.ibm.com>
6 */
8 #include <string.h>
10 #include "../../../util/pmu.h"
12 #define S390_PMUPAI_CRYPTO "pai_crypto"
13 #define S390_PMUPAI_EXT "pai_ext"
14 #define S390_PMUCPUM_CF "cpum_cf"
16 void perf_pmu__arch_init(struct perf_pmu *pmu)
18 if (!strcmp(pmu->name, S390_PMUPAI_CRYPTO) ||
19 !strcmp(pmu->name, S390_PMUPAI_EXT) ||
20 !strcmp(pmu->name, S390_PMUCPUM_CF))
21 pmu->selectable = true;