aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/intel-pt-events.py
diff options
context:
space:
mode:
authorSidhartha Kumar <[email protected]>2024-10-11 17:44:51 -0400
committerAndrew Morton <[email protected]>2024-11-06 20:11:12 -0800
commitf0c99037a0c6301ca8c3e41162dd0426b5d38abe (patch)
tree8918f8be334cce4fa9c3dcb8832f708e92569813 /tools/perf/scripts/python/intel-pt-events.py
parent7e1fbaa0df1dfc7b820cd41be0b2c7535d3e983a (diff)
maple_tree: refactor mas_wr_store_type()
In mas_wr_store_type(), we check if new_end < mt_slots[wr_mas->type]. If this check fails, we know that ,after this, new_end is >= mt_min_slots. Checking this again when we detect a wr_node_store later in the function is reduntant. Because this check is part of an OR statement, the statement will always evaluate to true, therefore we can just get rid of it. We also refactor mas_wr_store_type() to return the store type rather than set it directly as it greatly cleans up the function. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Sidhartha <[email protected]> Suggested-by: Liam Howlett <[email protected]> Suggested-by: Wei Yang <[email protected]> Reviewed-by: Wei Yang <[email protected]> Reviewed-by: Liam Howlett <[email protected]> Cc: Matthew Wilcox <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions