summaryrefslogtreecommitdiffstats
path: root/tools/perf/arch/s390/util/pmu.c
blob: 886c30e001fa80b2848142d572df9da9c16bfcba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// SPDX-License-Identifier: GPL-2.0

/*
 * Copyright IBM Corp. 2023
 * Author(s): Thomas Richter <tmricht@linux.ibm.com>
 */

#include <string.h>

#include "../../../util/pmu.h"

#define	S390_PMUPAI_CRYPTO	"pai_crypto"
#define	S390_PMUPAI_EXT		"pai_ext"
#define	S390_PMUCPUM_CF		"cpum_cf"

void perf_pmu__arch_init(struct perf_pmu *pmu)
{
	if (!strcmp(pmu->name, S390_PMUPAI_CRYPTO) ||
	    !strcmp(pmu->name, S390_PMUPAI_EXT) ||
	    !strcmp(pmu->name, S390_PMUCPUM_CF))
		pmu->selectable = true;
}