summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorRyan Lee <ryan.lee@canonical.com>2025-05-01 12:54:38 -0700
committerJohn Johansen <john.johansen@canonical.com>2025-05-17 18:20:10 -0700
commit6c055e62560b958354625604293652753d82bcae (patch)
tree6baeef9d49c079b4b52f8ba300c3f66ea1e44481 /tools/perf/scripts/python/flamegraph.py
parenta949b46e7d82ef0fed09aa0590442156d44d39b1 (diff)
apparmor: ensure WB_HISTORY_SIZE value is a power of 2
WB_HISTORY_SIZE was defined to be a value not a power of 2, despite a comment in the declaration of struct match_workbuf stating it is and a modular arithmetic usage in the inc_wb_pos macro assuming that it is. Bump WB_HISTORY_SIZE's value up to 32 and add a BUILD_BUG_ON_NOT_POWER_OF_2 line to ensure that any future changes to the value of WB_HISTORY_SIZE respect this requirement. Fixes: 136db994852a ("apparmor: increase left match history buffer size") Signed-off-by: Ryan Lee <ryan.lee@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions