diff options
author | Wei Yang <[email protected]> | 2020-08-31 11:11:02 +0800 |
---|---|---|
committer | Steven Rostedt (VMware) <[email protected]> | 2020-10-08 15:29:06 -0400 |
commit | b40c6eabfcd409e022fcb377ac268e3ef9446fde (patch) | |
tree | 9f5cf98fcd3a13f2951d7d2b8c0cc12ffec45738 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 02dae28f0b542969e44cbc1e14ffc9944cd2975c (diff) |
ftrace: Simplify the calculation of page number for ftrace_page->records
Based on the following two reasones, we could simplify the calculation:
- If the number after roundup count is not power of 2, we would
definitely have more than 1 empty page with a higher order.
- get_count_order() just return current order, so one lower order
could meet the requirement.
The calculation could be simplified by lower one order level when pages
are not power of 2.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Wei Yang <[email protected]>
Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions