Re: [PATCH 4/4] perf stat: Add transaction flag (-T) support for s390

Andi Kleen
2018-06-22T02:36:12Z

Thomas Richter <tmricht@linux.ibm.com> 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