![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0 0002 // Copyright (c) 2020 Facebook 0003 0004 #include <linux/bpf.h> 0005 #include <stdint.h> 0006 #include <linux/types.h> 0007 #include <bpf/bpf_helpers.h> 0008 0009 char _license[] SEC("license") = "GPL"; 0010 0011 __u64 count = 0; 0012 0013 SEC("raw_tracepoint/sys_enter") 0014 int test_enable_stats(void *ctx) 0015 { 0016 __sync_fetch_and_add(&count, 1); 0017 return 0; 0018 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |