Skip to content

Fix broken samples due to symbol mismatch

Daniel T. Lee bpf netdev 2 versions – Applied

Status from this message: Applied to bpf tree. Thanks

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyApplied
  2. v12 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- remove redundant casting

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2samples: bpf: replace symbol compare of trace_eventsamples/bpf/trace_event_user.c+2 -20 replies
2/2samples: bpf: fix syscall_tp due to unused syscallsamples/bpf/syscall_tp_kern.c+16 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH,bpf-next v2 0/2] Fix broken samples due to symbol mismatch

Currently, there are broken samples due to symbol mismatch (missing or unused symbols). For example, the function open() calls the syscall 'sys_openat' instead of 'sys_open'. And there are no exact symbols such as 'sys_read' or 'sys_write' under kallsyms, instead the symbols have prefixes. And these error leads to broke of samples.

This Patchset fixes the problem by changing the symbol match.

Changes in v2:
- remove redundant casting

Daniel T. Lee (2):
samples: bpf: replace symbol compare of trace_event
samples: bpf: fix syscall_tp due to unused syscall

 samples/bpf/syscall_tp_kern.c  | 18 ++++++++++++++++--
 samples/bpf/trace_event_user.c |  4 ++--
 2 files changed, 18 insertions(+), 4 deletions(-)
Signature · 1 line
2.24.0