# Re: \[RFC\]\[PATCH\] perf: Add a few generic stalled-cycles events

- From: Arun Sharma \<hidden\>
- Date: 2012-10-15 17:23:47 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2012/10/3939644
- Thread: https://ratatoskr.run/lkml/2012/10/3938407/t.md

```text
On 10/15/12 8:55 AM, Robert Richter wrote:

[..]
> Perf tool works then out-of-the-box with:
>
>   $ perf record -e cpu/stalled-cycles-fixed-point/ ...
>
> The event string can easily be reused by other architectures as a
> quasi standard.

I like Robert's proposal better. It's hard to model all the stall events (eg: instruction decoder related stalls on x86) in a hardware independent way.

Another area to think about: software engineers are generally busy and have a limited amount of time to devote to hardware event based optimizations. The most common question I hear is: what is the expected perf gain if I fix this? It's hard to answer that with just the stall events.

 -Arun
```
