commit | a6565080b9bf5bca37c32c3fbfa61ebb080e6594 | [log] [tgz] |
---|---|---|
author | Namhyung Kim <namhyung@kernel.org> | Thu Apr 21 13:33:24 2022 -0700 |
committer | Namhyung Kim <namhyung@kernel.org> | Fri May 06 12:58:57 2022 -0700 |
tree | 111c6568cd84b0bafcafac7b148533780a75205a | |
parent | a2c73caf0ae5b7b26f95a9063009301e4eecbc00 [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>