Re: [PATCHv2] perf tools: Add missing 'node' alias to the hw_cachearray
From: Peter Zijlstra
Date: Wed Jul 13 2011 - 17:06:19 EST
On Wed, 2011-07-13 at 22:58 +0200, Jiri Olsa wrote:
> Adding "node" as a simple alias for NODE cache events.
>
> The addition of NODE cache events broke the parse_alias function,
> so any mismatched event caused the segfault, like:
>
> # ./perf stat -e krava ls
>
> The hw_cache/hw_cache_op/hw_cache_result arrays needs to follow
> PERF_COUNT_HW_CACHE_*MAX enums. Adding those MAXs to be size
> of those arrays, so possible ommision in future wil not lead to
> segfault.
>
> Adding read/write/prefetch as allowed operations for node cache
> event.
>
> Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx>
Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/