Linux Audio

Check our new training course

Loading...
v6.13.7
 1// SPDX-License-Identifier: GPL-2.0
 2/* Copyright Leon Hwang */
 3
 4#include "vmlinux.h"
 5#include <bpf/bpf_helpers.h>
 6#include <bpf/bpf_tracing.h>
 7
 8int count = 0;
 9
10SEC("fexit/subprog_tail")
11int BPF_PROG(fexit, struct sk_buff *skb)
12{
13	count++;
14
15	return 0;
16}
17
18char _license[] SEC("license") = "GPL";
v6.8
 1// SPDX-License-Identifier: GPL-2.0
 2/* Copyright Leon Hwang */
 3
 4#include "vmlinux.h"
 5#include <bpf/bpf_helpers.h>
 6#include <bpf/bpf_tracing.h>
 7
 8int count = 0;
 9
10SEC("fexit/subprog_tail")
11int BPF_PROG(fexit, struct sk_buff *skb)
12{
13	count++;
14
15	return 0;
16}
17
18char _license[] SEC("license") = "GPL";