diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2024-12-20 00:52:53 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2024-12-23 22:18:36 +0300 |
commit | 8d4826cc8a8aca01a3b5e95438dfc0eb3bd589ab (patch) | |
tree | cbfbd34721a4a5af6bf2646bda3efbdffa429482 /tools/perf/scripts/python/task-analyzer.py | |
parent | 2b76e39fca4739a75c9a4f96f3471af6b1c18d9e (diff) | |
download | linux-8d4826cc8a8aca01a3b5e95438dfc0eb3bd589ab.tar.xz |
vsnprintf: collapse the number format state into one single state
We'll squirrel away the size of the number in 'struct fmt' instead.
We have two fairly separate state structures: the 'decode state' is in
'struct fmt', while the 'printout format' is in 'printf_spec'. Both
structures are small enough to pass around in registers even across
function boundaries (ie two words), even on 32-bit machines.
The goal here is to avoid the case statements on the format states,
which generate either deep conditionals or jump tables, while also
keeping the state size manageable.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions