android13/external/bcc/tests/python/dummy.cc

18 lines
353 B
C++
Raw Normal View History

2024-06-22 08:45:49 -04:00
#include <unistd.h>
#include <cstdio>
namespace some_namespace {
static __attribute__((noinline)) int some_function(int x, int y) {
volatile int z = x + y;
return z;
}
}
int main() {
printf("%p\n", &some_namespace::some_function);
fflush(stdout);
printf("result = %d\n", some_namespace::some_function(42, 11));
sleep(1000);
return 0;
}