summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorDavid Laight <david.laight.linux@gmail.com>2026-03-08 11:37:33 +0000
committerThomas Weißschuh <linux@weissschuh.net>2026-03-20 17:46:13 +0100
commit85f1152778f8cdc563ada12a3fc48c962b408d94 (patch)
tree2841f093f539c960d58e9c7f454ebd7c837a4a57 /tools/perf/scripts/python/stackcollapse.py
parentc5b9173ce9a110618edcb5bd92c8c724b6edf41f (diff)
tools/nolibc/printf: Use bit-masks to hold requested flag, length and conversion chars
Use flags bits (1u << (ch & 31)) for the flags, length modifiers, and conversion specifiers. This makes it easy to test for multiple values at once. Detect the conversion flags " #+-0" although they are currently all ignored. Unconditionally generate the signed values (for %d) to remove a second set of checks for the size. Separate out the formatting of single characters from numbers. Output the sign for negative values then negate and treat as unsigned. Signed-off-by: David Laight <david.laight.linux@gmail.com> Acked-by: Willy Tarreau <w@1wt.eu> Link: https://patch.msgid.link/20260308113742.12649-9-david.laight.linux@gmail.com Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions