131a9f7feSSong Liu // SPDX-License-Identifier: GPL-2.0 231a9f7feSSong Liu // Copyright (c) 2020 Facebook 331a9f7feSSong Liu 431a9f7feSSong Liu #include <linux/bpf.h> 531a9f7feSSong Liu #include <stdint.h> 631a9f7feSSong Liu #include <linux/types.h> 731a9f7feSSong Liu #include <bpf/bpf_helpers.h> 831a9f7feSSong Liu 931a9f7feSSong Liu char _license[] SEC("license") = "GPL"; 1031a9f7feSSong Liu 1131a9f7feSSong Liu __u64 count = 0; 1231a9f7feSSong Liu 1331a9f7feSSong Liu SEC("raw_tracepoint/sys_enter") test_enable_stats(void * ctx)1431a9f7feSSong Liuint test_enable_stats(void *ctx) 1531a9f7feSSong Liu { 16*d719de0dSYucong Sun __sync_fetch_and_add(&count, 1); 1731a9f7feSSong Liu return 0; 1831a9f7feSSong Liu } 19