commit | 9567f4984b28af743cc127d0d07325cd94ee1ad5 | [log] [tgz] |
---|---|---|
author | Namhyung Kim <namhyung@kernel.org> | Thu Apr 21 13:33:24 2022 -0700 |
committer | Namhyung Kim <namhyung@kernel.org> | Fri Apr 22 07:48:22 2022 -0700 |
tree | 18201f8abbda023312c2082e95977ce2a6407215 | |
parent | fff0f46de67ed563b90273fc9014ba25892bd464 [diff] |
perf record: Handle argument change in sched_switch Recently sched_switch tracepoint added a new argument for prev_state, but it's hard to handle the change in a BPF program. Instead, we can check the function prototype in BTF before loading the program. Thus I make two copies of the tracepoint handler and select one based on the BTF info. Signed-off-by: Namhyung Kim <namhyung@kernel.org>