Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ LOCAL_CLANG ?= 0
LOCAL_CLANG_FORMAT ?= 0
FORMAT_FIND_FLAGS ?= -name '*.c' -o -name '*.h'
NOOPT ?= 0
CLANG_IMAGE = quay.io/cilium/clang:b97f5b3d5c38da62fb009f21a53cd42aefd54a2f@sha256:e1c8ed0acd2e24ed05377f2861d8174af28e09bef3bbc79649c8eba165207df0
CLANG_IMAGE = quay.io/cilium/clang:94b9cfd5772185fe8c78c5d558e6d01a49f364dd
TESTER_PROGS_DIR = "contrib/tester-progs"
# Extra flags to pass to test binary
EXTRA_TESTFLAGS ?=
Expand Down
4 changes: 4 additions & 0 deletions bpf/process/generic_calls.h
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,11 @@ FUNC_INLINE long generic_filter_arg(void *ctx, struct bpf_map_def *tailcalls,
selidx = e->tailcall_index_selector;
pass = filter_args(e, selidx & MAX_SELECTORS_MASK, is_entry);
if (!pass) {
#ifdef __LARGE_BPF_PROG
selidx = next_selidx(e, selidx);
#else
selidx += 1;
#endif
if (selidx <= MAX_SELECTORS) {
e->tailcall_index_selector = selidx;
tail_call(ctx, tailcalls, TAIL_CALL_ARGS);
Expand Down
4 changes: 3 additions & 1 deletion bpf/process/types/basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -1134,17 +1134,19 @@ FUNC_INLINE long
copy_char_iovec(void *ctx, long off, unsigned long arg, int argm,
struct msg_generic_kprobe *e)
{
int *s = (int *)args_off(e, off);
unsigned long meta;

meta = get_arg_meta(argm, e);

#ifndef GENERIC_TRACEPOINT
if (has_return_copy(argm)) {
int *s = (int *)args_off(e, off);
u64 retid = retprobe_map_get_key(ctx);

retprobe_map_set_iovec(e->func_id, retid, e->common.ktime, arg, meta);
return return_error(s, char_buf_saved_for_retprobe);
}
#endif
return __copy_char_iovec(off, arg, meta, 0, e);
}

Expand Down
Loading