aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorDave Taht <[email protected]>2024-09-09 11:16:28 +0200
committerJakub Kicinski <[email protected]>2024-09-10 18:31:52 -0700
commitc48994baefdc1e092d1ebd979ae573e73fcfb9c5 (patch)
treeadb4d9a5a1db5d16e87e289bac2dd2ad704d6e5a /tools/perf/util/scripting-engines/trace-event-python.c
parent3f464b193d40e49299dcd087b10cc3b77cbbea68 (diff)
sch_cake: constify inverse square root cache
sch_cake uses a cache of the first 16 values of the inverse square root calculation for the Cobalt AQM to save some cycles on the fast path. This cache is populated when the qdisc is first loaded, but there's really no reason why it can't just be pre-populated. So change it to be pre-populated with constants, which also makes it possible to constify it. This gives a modest space saving for the module (not counting debug data): .text: -224 bytes .rodata: +80 bytes .bss: -64 bytes Total: -192 bytes Signed-off-by: Dave Taht <[email protected]> [ fixed up comment, rewrote commit message ] Signed-off-by: Toke Høiland-Jørgensen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions