xref: /aosp_15_r20/external/bcc/tests/python/dummy.cc (revision 387f9dfdfa2baef462e92476d413c7bc2470293e)
1 #include <unistd.h>
2 #include <cstdio>
3 
4 namespace some_namespace {
some_function(int x,int y)5   static __attribute__((noinline)) int some_function(int x, int y) {
6 	  volatile int z = x + y;
7 	  return z;
8   }
9 }
10 
main()11 int main() {
12 	printf("%p\n", &some_namespace::some_function);
13 	fflush(stdout);
14 	printf("result = %d\n", some_namespace::some_function(42, 11));
15 	sleep(1000);
16 	return 0;
17 }
18