Commit c2a1d26
fix: revert cpu_runqlat_tracing to use task->state CO-RE check
task_struct___7_0 with preserve_access_index causes CO-RE relocation
failure on older kernels (ubuntu20.04/kernel 5.15). The original
bpf_core_field_exists(task->state) approach with task_struct___5_14
fallback works correctly on all kernel versions (4.18+).
Fixes: bad CO-RE relocation: invalid func unknown#195896080
Signed-off-by: zhangyi <zy84338719@gmail.com>1 parent 85e6aed commit c2a1d26
1 file changed
Lines changed: 5 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
124 | 123 | | |
125 | 124 | | |
126 | 125 | | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
135 | 131 | | |
136 | 132 | | |
137 | 133 | | |
| |||
0 commit comments