diff options
| author | Babu Moger <babu.moger@amd.com> | 2025-11-12 18:57:34 -0600 |
|---|---|---|
| committer | Borislav Petkov (AMD) <bp@alien8.de> | 2025-11-22 13:10:12 +0100 |
| commit | af1242eeca50b20076d1bc9a41653005634a8a4f (patch) | |
| tree | 7805a763f216ff89b76738de3a4bc56750800293 /tools/perf/scripts/python | |
| parent | fs/resctrl: Introduce interface to display io_alloc CBMs (diff) | |
| download | linux-af1242eeca50b20076d1bc9a41653005634a8a4f.tar.gz linux-af1242eeca50b20076d1bc9a41653005634a8a4f.zip | |
fs/resctrl: Modify struct rdt_parse_data to pass mode and CLOSID
parse_cbm() requires resource group mode and CLOSID to validate the capacity
bitmask (CBM). It is passed via struct rdtgroup in struct rdt_parse_data.
The io_alloc feature also uses CBMs to indicate which portions of cache are
allocated for I/O traffic. The CBMs are provided by user space and need to be
validated the same as CBMs provided for general (CPU) cache allocation.
parse_cbm() cannot be used as-is since io_alloc does not have rdtgroup context.
Pass the resource group mode and CLOSID directly to parse_cbm() via struct
rdt_parse_data, instead of through the rdtgroup struct, to facilitate calling
parse_cbm() to verify the CBM of the io_alloc feature.
Signed-off-by: Babu Moger <babu.moger@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Link: https://patch.msgid.link/f8ec6ab5cf594d906a3fe75f56793d5fbd63f38f.1762995456.git.babu.moger@amd.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
