summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/tracing_struct_int128.c
blob: 4638dfec1f38efbc19d625ebb042368b0265df67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-License-Identifier: GPL-2.0
/* Copyright (c) 2026 Meta Platforms, Inc. and affiliates. */
#include <vmlinux.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_helpers.h>

long t_b, t_c, t_ret;

SEC("fexit/bpf_testmod_test_int128_arg")
int test_int128_arg_fexit(unsigned long long *ctx)
{
	t_b = (int)ctx[2];
	t_c = (long)ctx[3];
	t_ret = (long)ctx[4];
	return 0;
}

char _license[] SEC("license") = "GPL";