mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
19 lines
294 B
C
19 lines
294 B
C
![]() |
// SPDX-License-Identifier: GPL-2.0
|
||
|
/* Copyright Leon Hwang */
|
||
|
|
||
|
#include "vmlinux.h"
|
||
|
#include <bpf/bpf_helpers.h>
|
||
|
#include <bpf/bpf_tracing.h>
|
||
|
|
||
|
int count = 0;
|
||
|
|
||
|
SEC("fexit/subprog_tail")
|
||
|
int BPF_PROG(fexit, struct sk_buff *skb)
|
||
|
{
|
||
|
count++;
|
||
|
|
||
|
return 0;
|
||
|
}
|
||
|
|
||
|
char _license[] SEC("license") = "GPL";
|