aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorPierre Gondois <[email protected]>2023-01-04 19:30:25 +0100
committerSudeep Holla <[email protected]>2023-01-17 22:00:06 +0000
commit8844c3df001bc1d8397fddea341308da63855d53 (patch)
tree59363df47a7aa67a555cd76c0649e4897723a8ce /tools/perf/scripts/python/flamegraph.py
parentc3719bd9eeb2edf84bd263d662e36ca0ba262a23 (diff)
cacheinfo: Return error code in init_of_cache_level()
Make init_of_cache_level() return an error code when the cache information parsing fails to help detecting missing information. init_of_cache_level() is only called for riscv. Returning an error code instead of 0 will prevent detect_cache_attributes() to allocate memory if an incomplete DT is parsed. Signed-off-by: Pierre Gondois <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions