diff options
author | Sudeep Holla <[email protected]> | 2022-07-04 11:15:47 +0100 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2022-07-04 16:22:28 +0100 |
commit | b14e8d21f726f4ffeaf8833783eda68a1c152b15 (patch) | |
tree | 2c497c2e090db90380f3535c47cde8f5a76980b2 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | d4ec840baecbed280c7305f9103a10641d4d3799 (diff) |
cacheinfo: Add helper to access any cache index for a given CPU
The cacheinfo for a given CPU at a given index is used at quite a few
places by fetching the base point for index 0 using the helper
per_cpu_cacheinfo(cpu) and offsetting it by the required index.
Instead, add another helper to fetch the required pointer directly and
use it to simplify and improve readability.
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Ionela Voinescu <[email protected]>
Tested-by: Conor Dooley <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions