diff options
author | Jiri Slaby <[email protected]> | 2020-06-15 09:48:50 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-06-24 17:08:32 +0200 |
commit | 754bda9807f2fcc0fe32ebeaef9f6443b2151059 (patch) | |
tree | eecffd00a02ba5720d905a3e8d37151bf8bfef8c /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | 917ae1a9907bf33fe41fdfe68c6fcb03dfa07ed2 (diff) |
vc: extract detecting control characters from do_con_write
Move the control characters detection to a separate function dubbed
vc_is_control. It makes the 14 subexpressions a "bit" more readable. And
also simplifies next patches.
It moves also CTRL_ACTION and CTRL_ALWAYS to this new function, as they
are used exclusively here. While at it, these are converted to static
const variables.
And we use "& BIT()" instead of ">>" and "& 1".
Checked using symbolic execution (klee), that the old and new
behaviors are the same.
Signed-off-by: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions