Re: [PATCH 4/4] perf stat: Add transaction flag (-T) support for s390
From: Andi Kleen
Date: Thu Jun 21 2018 - 22:36:14 EST
Thomas Richter <tmricht@xxxxxxxxxxxxx> writes:
>
> + /* Handle -T as -M transaction. Once platform specific metrics
> + * support has been added to the json files, all archiectures
> + * will use this approach.
> + */
> + if (!strcmp(perf_env__arch(NULL), "s390")) {
Use pmu_have_event() instead.
You may need to add support for wildcard pmus to it.
-Andi