lkml.org 
[lkml]   [2021]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/7] perf: Create a symlink for a PMU
From
Date

> We have an attribute "caps/pmu_name" for the core PMU. Maybe we should
> add it for uncore PMU as well. For example,
>
> $ cat /sys/devices/uncore_type_0_0/caps/pmu_name
> cha_0
>
> Userspace tool can get clues about what type_0_0 is.

It would break all the old tools, but I suppose it could work for
updated tools.

It isn't only perf that is parsing this, but some other libraries too.
They all would need to be updated too.

I think I still prefer the symlink. It would just work and keep full
compatibility.

But yes maybe there is no choice.

-Andi


\
 
 \ /
  Last update: 2021-06-25 17:45    [W:0.112 / U:0.260 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site