1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2020, Oracle and/or its affiliates.
5 #include <bpf/bpf_helpers.h>
6 #include <bpf/bpf_tracing.h>
8 char _license[] SEC("license") = "GPL";
10 int trace_printk_ret = 0;
11 int trace_printk_ran = 0;
13 SEC("tp/raw_syscalls/sys_enter")
14 int sys_enter(void *ctx)
16 static const char fmt[] = "testing,testing %d\n";
18 trace_printk_ret = bpf_trace_printk(fmt, sizeof(fmt),