diff options
author | Valentin Schneider <[email protected]> | 2023-07-07 18:21:53 +0100 |
---|---|---|
committer | Steven Rostedt (Google) <[email protected]> | 2023-08-22 05:13:29 -0400 |
commit | 1cffbe6c62f10e200813ef19caea49bbde71d474 (patch) | |
tree | 52f8650c64fa52df3f3ceb738a2651435b331382 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | ca77dd8ce4658d1006d747dd1995ebb9375199c8 (diff) |
tracing/filters: Optimise CPU vs cpumask filtering when the user mask is a single CPU
Steven noted that when the user-provided cpumask contains a single CPU,
then the filtering function can use a scalar as input instead of a
full-fledged cpumask.
In this case we can directly re-use filter_pred_cpu(), we just need to
transform '&' into '==' before executing it.
Link: https://lkml.kernel.org/r/[email protected]
Cc: Masami Hiramatsu <[email protected]>
Cc: Jonathan Corbet <[email protected]>
Cc: Juri Lelli <[email protected]>
Cc: Daniel Bristot de Oliveira <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: Leonardo Bras <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Suggested-by: Steven Rostedt <[email protected]>
Signed-off-by: Valentin Schneider <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions