Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
9136650
fix(modern): check `cred` field is not NULL before the access
Andreagit97 Oct 16, 2024
e214eb3
cleanup: move `sched_p_exec` tail calls
Andreagit97 Nov 6, 2024
e9a8ced
cleanup: move `sched_p_fork` tail calls
Andreagit97 Nov 6, 2024
00a6a39
cleanup: move `hotplug` logic into sys_exit
Andreagit97 Nov 6, 2024
dabbaf7
cleanup: simplify droppping logic for tracepoint
Andreagit97 Nov 6, 2024
70033a4
update: set sched_switch as UF_ALWAYS_DROP
Andreagit97 Nov 6, 2024
cc7c36c
cleanup: rename some methods
Andreagit97 Nov 6, 2024
38cceec
cleanup: don't initialize enums if not needed
Andreagit97 Nov 6, 2024
27e12c9
cleanup: remove `ctx`
Andreagit97 Nov 6, 2024
070cee3
cleanup(tests): improve test stability
Andreagit97 Nov 7, 2024
8279c1c
chore(ci): bumped perf unit tests threshold to 5% (relative) slowdown.
FedeDP Sep 16, 2024
377d260
chore(test/libsinsp_e2e,ci): port libsinsp_e2e tests to use python3.
FedeDP Sep 17, 2024
e4eea8b
new(ci): add a zig build job plus a composite action to setup zig.
FedeDP Sep 20, 2024
8b369a2
chore(ci): check linked glibc version on zig.
FedeDP Sep 23, 2024
768d1b1
chore(ci): show diff on failed format
Molter73 Oct 1, 2024
c4c124a
clean up and update ci
cpanato Oct 9, 2024
cfe3dae
chore(deps): Bump the actions group with 5 updates
dependabot[bot] Oct 9, 2024
0ade1df
chore(deps): Bump codecov/codecov-action
dependabot[bot] Oct 9, 2024
8cdf9f0
chore(deps): Bump dorny/paths-filter from 2.11.1 to 3.0.2
dependabot[bot] Oct 9, 2024
adc1630
chore(deps): Bump actions/setup-python from 4.7.1 to 5.2.0
dependabot[bot] Oct 9, 2024
406c6ad
chore(deps): Bump actions/upload-pages-artifact from 2.0.0 to 3.0.1
dependabot[bot] Oct 9, 2024
45a63b0
chore(deps): Bump peter-evans/create-pull-request from 5.0.2 to 7.0.5
dependabot[bot] Oct 9, 2024
0d1ab87
chore(deps): Bump actions/deploy-pages from 2.0.4 to 4.0.5
dependabot[bot] Oct 9, 2024
a3b7545
chore(deps): Bump actions/upload-artifact from 3.1.3 to 4.4.2
dependabot[bot] Oct 9, 2024
697c0b2
chore(deps): Bump actions/checkout from 3.6.0 to 4.2.1
dependabot[bot] Oct 10, 2024
66d9dcb
fix(ci): fix kernel testing action by using proper tag name.
FedeDP Oct 10, 2024
eaa816d
fix(ci): fixed build-scap-open-w-extern-bpf-skeleton: we do not rely …
FedeDP Oct 10, 2024
d0c4f58
chore(ci): bump actions/download-artifact to latest release (v4.1.8).
FedeDP Oct 10, 2024
8d752c8
chore(deps): Bump the actions group with 2 updates
dependabot[bot] Oct 14, 2024
0fb3d13
new(ci): run latest-kernel CI against arm64 too.
FedeDP Oct 16, 2024
aa6951e
fix(ci): fixed latest-kernel CI usage of steps/jobs outputs.
FedeDP Oct 17, 2024
f101f1e
fix(ci): fixed create-comment-kernel-testing workflow when kernel-tes…
FedeDP Oct 17, 2024
12d3a8b
fix(ci): fixed create-comment-perf workflow when perf CI does not run.
FedeDP Oct 17, 2024
e9168ca
fix(ci): use `process.exit();` to leave node script in github/action-…
FedeDP Oct 21, 2024
9387467
fix(ci): create-comment workflows array length check.
FedeDP Oct 21, 2024
a152203
chore(deps): Bump uraimo/run-on-arch-action in the actions group
dependabot[bot] Oct 21, 2024
1a50aba
chore(ci): keep zig development version alive by using actions/cache.
FedeDP Sep 20, 2024
ef5a56d
chore(ci): bump the zig version to latest.
FedeDP Sep 23, 2024
8a2665b
chore(ci): bump zig version and improve install-zig action.
FedeDP Oct 22, 2024
3ff318d
fix(ci): fixed create-comment-kernel-testing typo.
FedeDP Oct 22, 2024
d0c5297
chore(ci): increase timeout to 5minutes for driverkit build in latest…
FedeDP Oct 22, 2024
2a67310
update(ci): use cncf provided self hosted runners for arm64.
FedeDP Sep 13, 2024
70f0538
chore(deps): Bump the actions group with 3 updates
dependabot[bot] Oct 29, 2024
8e0c741
chore(deps): Bump softprops/action-gh-release from 1 to 2
dependabot[bot] Oct 9, 2024
89cb0d3
chore(deps): Bump softprops/action-gh-release in the actions group
dependabot[bot] Nov 11, 2024
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
Prev Previous commit
Next Next commit
cleanup: remove ctx
Signed-off-by: Andrea Terzolo <andreaterzolo3@gmail.com>
  • Loading branch information
Andreagit97 authored and FedeDP committed Nov 13, 2024
commit 27e12c9c957c3014153d0c12d38947e319ca21fe
4 changes: 1 addition & 3 deletions driver/modern_bpf/helpers/store/auxmap_store_params.h
Original file line number Diff line number Diff line change
@@ -117,10 +117,8 @@ static __always_inline void auxmap__finalize_event_header(struct auxiliary_map *
* of events sent to userspace, otherwise we increment the dropped events.
*
* @param auxmap pointer to the auxmap in which we have already written the entire event.
* @param ctx BPF prog context
*/
// todo!: we need to remove the context because we don't perform any tail call
static __always_inline void auxmap__submit_event(struct auxiliary_map *auxmap, void *ctx) {
static __always_inline void auxmap__submit_event(struct auxiliary_map *auxmap) {
struct ringbuf_map *rb = maps__get_ringbuf_map();
if(!rb) {
// this should never happen because we check it in sys_enter/sys_exit
3 changes: 0 additions & 3 deletions driver/modern_bpf/helpers/store/ringbuf_store_params.h
Original file line number Diff line number Diff line change
@@ -90,13 +90,10 @@ struct ringbuf_struct {
* to know the event dimension at compile time.
*
* @param ringbuf pointer to the `ringbuf_struct`
* @param ctx BPF prog context
* @param event_size exact size of the fixed-size event
* @return `1` in case of success, `0` in case of failure.
*/
// todo!: we need to remove the context because we don't perform any tail call
static __always_inline uint32_t ringbuf__reserve_space(struct ringbuf_struct *ringbuf,
void *ctx,
uint32_t event_size,
uint16_t event_type) {
struct ringbuf_map *rb = maps__get_ringbuf_map();
Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ int BPF_PROG(pf_kernel, unsigned long address, struct pt_regs *regs, unsigned lo
}

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, PAGE_FAULT_SIZE, PPME_PAGE_FAULT_E)) {
if(!ringbuf__reserve_space(&ringbuf, PAGE_FAULT_SIZE, PPME_PAGE_FAULT_E)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -22,7 +22,7 @@ int BPF_PROG(pf_user, unsigned long address, struct pt_regs *regs, unsigned long
}

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, PAGE_FAULT_SIZE, PPME_PAGE_FAULT_E)) {
if(!ringbuf__reserve_space(&ringbuf, PAGE_FAULT_SIZE, PPME_PAGE_FAULT_E)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -292,7 +292,7 @@ int BPF_PROG(t2_sched_p_exec, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);
return 0;
}

Original file line number Diff line number Diff line change
@@ -201,7 +201,7 @@ int BPF_PROG(sched_proc_exit, struct task_struct *task) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -255,7 +255,7 @@ int BPF_PROG(t2_sched_p_fork, struct task_struct *parent, struct task_struct *ch

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);
return 0;
}
#endif /* CAPTURE_SCHED_PROC_EXEC */
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@ int BPF_PROG(sched_switch, bool preempt, struct task_struct *prev, struct task_s
/// TODO: we could avoid switches from kernel threads to kernel threads (?).

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, SCHED_SWITCH_SIZE, PPME_SCHEDSWITCH_6_E)) {
if(!ringbuf__reserve_space(&ringbuf, SCHED_SWITCH_SIZE, PPME_SCHEDSWITCH_6_E)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -20,7 +20,7 @@ int BPF_PROG(signal_deliver, int sig, struct kernel_siginfo *info, struct k_siga
}

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, SIGNAL_DELIVER_SIZE, PPME_SIGNALDELIVER_E)) {
if(!ringbuf__reserve_space(&ringbuf, SIGNAL_DELIVER_SIZE, PPME_SIGNALDELIVER_E)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(t1_drop_e) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, DROP_E_SIZE, PPME_DROP_E)) {
if(!ringbuf__reserve_space(&ringbuf, DROP_E_SIZE, PPME_DROP_E)) {
return 0;
}

@@ -36,7 +36,7 @@ int BPF_PROG(t1_drop_e) {
SEC("tp_btf/sys_exit")
int BPF_PROG(t1_drop_x) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, DROP_X_SIZE, PPME_DROP_X)) {
if(!ringbuf__reserve_space(&ringbuf, DROP_X_SIZE, PPME_DROP_X)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(accept_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, ACCEPT_E_SIZE, PPME_SOCKET_ACCEPT_5_E)) {
if(!ringbuf__reserve_space(&ringbuf, ACCEPT_E_SIZE, PPME_SOCKET_ACCEPT_5_E)) {
return 0;
}

@@ -105,7 +105,7 @@ int BPF_PROG(accept_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(accept4_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, ACCEPT4_E_SIZE, PPME_SOCKET_ACCEPT4_6_E)) {
if(!ringbuf__reserve_space(&ringbuf, ACCEPT4_E_SIZE, PPME_SOCKET_ACCEPT4_6_E)) {
return 0;
}

@@ -109,7 +109,7 @@ int BPF_PROG(accept4_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(access_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, ACCESS_E_SIZE, PPME_SYSCALL_ACCESS_E)) {
if(!ringbuf__reserve_space(&ringbuf, ACCESS_E_SIZE, PPME_SYSCALL_ACCESS_E)) {
return 0;
}

@@ -59,7 +59,7 @@ int BPF_PROG(access_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ int BPF_PROG(bind_e, struct pt_regs *regs, long id) {
extract__network_args(&socket_fd, 1, regs);

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, BIND_E_SIZE, PPME_SOCKET_BIND_E)) {
if(!ringbuf__reserve_space(&ringbuf, BIND_E_SIZE, PPME_SOCKET_BIND_E)) {
return 0;
}

@@ -70,7 +70,7 @@ int BPF_PROG(bind_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(bpf_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, BPF_E_SIZE, PPME_SYSCALL_BPF_2_E)) {
if(!ringbuf__reserve_space(&ringbuf, BPF_E_SIZE, PPME_SYSCALL_BPF_2_E)) {
return 0;
}

@@ -39,7 +39,7 @@ int BPF_PROG(bpf_e, struct pt_regs *regs, long id) {
SEC("tp_btf/sys_exit")
int BPF_PROG(bpf_x, struct pt_regs *regs, long ret) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, BPF_X_SIZE, PPME_SYSCALL_BPF_2_X)) {
if(!ringbuf__reserve_space(&ringbuf, BPF_X_SIZE, PPME_SYSCALL_BPF_2_X)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(brk_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, BRK_E_SIZE, PPME_SYSCALL_BRK_4_E)) {
if(!ringbuf__reserve_space(&ringbuf, BRK_E_SIZE, PPME_SYSCALL_BRK_4_E)) {
return 0;
}

@@ -39,7 +39,7 @@ int BPF_PROG(brk_e, struct pt_regs *regs, long id) {
SEC("tp_btf/sys_exit")
int BPF_PROG(brk_x, struct pt_regs *regs, long ret) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, BRK_X_SIZE, PPME_SYSCALL_BRK_4_X)) {
if(!ringbuf__reserve_space(&ringbuf, BRK_X_SIZE, PPME_SYSCALL_BRK_4_X)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(capset_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CAPSET_E_SIZE, PPME_SYSCALL_CAPSET_E)) {
if(!ringbuf__reserve_space(&ringbuf, CAPSET_E_SIZE, PPME_SYSCALL_CAPSET_E)) {
return 0;
}

@@ -37,7 +37,7 @@ int BPF_PROG(capset_e, struct pt_regs *regs, long id) {
SEC("tp_btf/sys_exit")
int BPF_PROG(capset_x, struct pt_regs *regs, long ret) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CAPSET_X_SIZE, PPME_SYSCALL_CAPSET_X)) {
if(!ringbuf__reserve_space(&ringbuf, CAPSET_X_SIZE, PPME_SYSCALL_CAPSET_X)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(chdir_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CHDIR_E_SIZE, PPME_SYSCALL_CHDIR_E)) {
if(!ringbuf__reserve_space(&ringbuf, CHDIR_E_SIZE, PPME_SYSCALL_CHDIR_E)) {
return 0;
}

@@ -57,7 +57,7 @@ int BPF_PROG(chdir_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(chmod_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CHMOD_E_SIZE, PPME_SYSCALL_CHMOD_E)) {
if(!ringbuf__reserve_space(&ringbuf, CHMOD_E_SIZE, PPME_SYSCALL_CHMOD_E)) {
return 0;
}

@@ -61,7 +61,7 @@ int BPF_PROG(chmod_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(chown_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CHOWN_E_SIZE, PPME_SYSCALL_CHOWN_E)) {
if(!ringbuf__reserve_space(&ringbuf, CHOWN_E_SIZE, PPME_SYSCALL_CHOWN_E)) {
return 0;
}

@@ -65,7 +65,7 @@ int BPF_PROG(chown_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(chroot_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CHROOT_E_SIZE, PPME_SYSCALL_CHROOT_E)) {
if(!ringbuf__reserve_space(&ringbuf, CHROOT_E_SIZE, PPME_SYSCALL_CHROOT_E)) {
return 0;
}

@@ -57,7 +57,7 @@ int BPF_PROG(chroot_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(clone_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CLONE_E_SIZE, PPME_SYSCALL_CLONE_20_E)) {
if(!ringbuf__reserve_space(&ringbuf, CLONE_E_SIZE, PPME_SYSCALL_CLONE_20_E)) {
return 0;
}

@@ -228,7 +228,7 @@ int BPF_PROG(t2_clone_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);
return 0;
}

Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@
SEC("tp_btf/sys_enter")
int BPF_PROG(clone3_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CLONE3_E_SIZE, PPME_SYSCALL_CLONE3_E)) {
if(!ringbuf__reserve_space(&ringbuf, CLONE3_E_SIZE, PPME_SYSCALL_CLONE3_E)) {
return 0;
}

@@ -226,7 +226,7 @@ int BPF_PROG(t2_clone3_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);
return 0;
}

Original file line number Diff line number Diff line change
@@ -42,7 +42,7 @@ int BPF_PROG(close_e, struct pt_regs *regs, long id) {
}

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CLOSE_E_SIZE, PPME_SYSCALL_CLOSE_E)) {
if(!ringbuf__reserve_space(&ringbuf, CLOSE_E_SIZE, PPME_SYSCALL_CLOSE_E)) {
return 0;
}

@@ -72,7 +72,7 @@ int BPF_PROG(close_x, struct pt_regs *regs, long ret) {
}

struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf, ctx, CLOSE_X_SIZE, PPME_SYSCALL_CLOSE_X)) {
if(!ringbuf__reserve_space(&ringbuf, CLOSE_X_SIZE, PPME_SYSCALL_CLOSE_X)) {
return 0;
}

Original file line number Diff line number Diff line change
@@ -37,7 +37,7 @@ int BPF_PROG(connect_e, struct pt_regs *regs, long id) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
@@ -81,7 +81,7 @@ int BPF_PROG(connect_x, struct pt_regs *regs, long ret) {

auxmap__finalize_event_header(auxmap);

auxmap__submit_event(auxmap, ctx);
auxmap__submit_event(auxmap);

return 0;
}
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ SEC("tp_btf/sys_enter")
int BPF_PROG(copy_file_range_e, struct pt_regs *regs, long id) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf,
ctx,

COPY_FILE_RANGE_E_SIZE,
PPME_SYSCALL_COPY_FILE_RANGE_E)) {
return 0;
@@ -50,10 +50,7 @@ int BPF_PROG(copy_file_range_e, struct pt_regs *regs, long id) {
SEC("tp_btf/sys_exit")
int BPF_PROG(copy_file_range_x, struct pt_regs *regs, long ret) {
struct ringbuf_struct ringbuf;
if(!ringbuf__reserve_space(&ringbuf,
ctx,
COPY_FILE_RANGE_X_SIZE,
PPME_SYSCALL_COPY_FILE_RANGE_X)) {
if(!ringbuf__reserve_space(&ringbuf, COPY_FILE_RANGE_X_SIZE, PPME_SYSCALL_COPY_FILE_RANGE_X)) {
return 0;
}

Loading