Sign in
zircon-guest
/
third_party
/
linux
/
650093916eb3140339a3132ef7d5a02d8712d058
/
.
/
tools
/
testing
/
selftests
/
bpf
/
progs
/
test_global_func17.c
blob: 2b8b9b8ba0183cf316ea8fc39e6549f099f02ed6 [
file
] [
log
] [
blame
]
// SPDX-License-Identifier: GPL-2.0-only
#include
<vmlinux.h>
#include
<bpf/bpf_helpers.h>
__noinline
int
foo
(
int
*
p
)
{
return
p
?
(*
p
=
42
)
:
0
;
}
const
volatile
int
i
;
SEC
(
"tc"
)
int
test_cls
(
struct
__sk_buff
*
skb
)
{
return
foo
((
int
*)&
i
);
}