xref: /linux/tools/testing/selftests/bpf/progs/tracing_struct_int128.c (revision 5a8cd539ac19f7a68e68e1d25ef9ca2ff55b8500)
1 // SPDX-License-Identifier: GPL-2.0
2 /* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
3 #include <vmlinux.h>
4 #include <bpf/bpf_tracing.h>
5 #include <bpf/bpf_helpers.h>
6 
7 long t_b, t_c, t_ret;
8 
9 SEC("fexit/bpf_testmod_test_int128_arg")
test_int128_arg_fexit(unsigned long long * ctx)10 int test_int128_arg_fexit(unsigned long long *ctx)
11 {
12 	t_b = (int)ctx[2];
13 	t_c = (long)ctx[3];
14 	t_ret = (long)ctx[4];
15 	return 0;
16 }
17 
18 char _license[] SEC("license") = "GPL";
19