xref: /aosp_15_r20/external/bcc/tests/cc/usdt_test_lib.cc (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
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