diff options
| author | Kairui Song <[email protected]> | 2024-04-16 01:18:55 +0800 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2024-04-25 20:56:09 -0700 |
| commit | a4864671ca0bf51c8e78242951741df52c06766f (patch) | |
| tree | f335864cbcd5b7ea0525614f09ee6ab54c0cc144 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | b2ebcf9d3d5a0108f640d8c8200ece8848045725 (diff) | |
lib/xarray: introduce a new helper xas_get_order
It can be used after xas_load to check the order of loaded entries.
Compared to xa_get_order, it saves an XA_STATE and avoid a rewalk.
Added new test for xas_get_order, to make the test work, we have to export
xas_get_order with EXPORT_SYMBOL_GPL.
Also fix a sparse warning by checking the slot value with xa_entry instead
of accessing it directly, as suggested by Matthew Wilcox.
[[email protected]: simplify comment, sparse warning fix, per Matthew Wilcox]
Link: https://lkml.kernel.org/r/[email protected]
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Kairui Song <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions