github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/agent/ebpfspy/symtab/test_helper.go (about) 1 package symtab 2 3 /* 4 #include <stdlib.h> 5 static size_t get_malloc__(){ 6 return (size_t)malloc; 7 } 8 */ 9 import "C" 10 11 func testHelperGetMalloc() int { 12 return int(C.get_malloc__()) 13 }