1 #include <sys/types.h> 2 #include <unistd.h> 3 4 #include "folly/tracing/StaticTracepoint.h" 5 6 extern "C" { 7 lib_probed_function()8 int lib_probed_function() { 9 int an_int = 42 + getpid(); 10 FOLLY_SDT(libbcc_test, sample_lib_probe_1, an_int); 11 return an_int; 12 } 13 14 } 15