github.com/kubeshark/ebpf@v0.9.2/testdata/strings.c (about) 1 #include "common.h" 2 3 char __license[] __section("license") = "MIT"; 4 5 #define STR1 "This string is allocated in the string section\n" 6 #define STR2 "This one too\n" 7 8 __section("socket") int filter() { 9 trace_printk(STR1, sizeof(STR1)); 10 trace_printk(STR2, sizeof(STR2)); 11 return 0; 12 }