Skip to contentSkip to conversation

Translating perf events to raw event codes via sysfs

DISCUSSION Mel Gorman 1 participant 2 messages Mar 22, 2016

lore
Share & tools
lore

Mel Gorman

author
#0 lore raw

Hi Sukadev,

I'm curious about commit e0728b50d480 ("powerpc/perf: Export Power8 generic and cache events to sysfs"). This commit translates perf high-level event names into raw codes but only on one architecture for one CPU.

While I can see how that is useful, I'm wondering why this was implemented as being specific to a single processor family. Should this not be done generically for all architectures? I accept that translating event names to raw codes for perf can be difficult but there are also tools like evt2raw whose output can then be used with perf.

Signature · 2 lines
Mel Gorman
SUSE Labs
author
#1 lore raw
Quoted 7 lines · Mel Gorman

Hi Sukadev,

I'm curious about commit e0728b50d480 ("powerpc/perf: Export Power8 generic and cache events to sysfs"). This commit translates perf high-level event names into raw codes but only on one architecture for one CPU.

Never mind, it's obvious to me now even if only one power8 CPU is supported.

Signature · 2 lines
Mel Gorman
SUSE Labs