1 #ifndef _LINUX_COMMON_H 2 #define _LINUX_COMMON_H 4 #define LINUX_VERSION(a,b,c) ( ((a&0xff)<<24) | ((b&0xff)<<16) | ((c&0xff) << 8)) 7 typeof(x) _min1 = (x); \ 8 typeof(y) _min2 = (y); \ 9 (void) (&_min1 == &_min2); \ 10 _min1 < _min2 ? _min1 : _min2; }) 16 return syscall( SYS_gettid );
17 #elif defined(__NR_gettid) 18 return syscall( __NR_gettid );
20 #error "cannot find gettid" 25 #define F_SETOWN_EX 15 26 #define F_GETOWN_EX 16 30 #define F_OWNER_PGRP 2 43 #define _papi_getcpu() sched_getcpu() 46 #define _papi_getcpu() 0
static pid_t mygettid(void)
int _linux_detect_nmi_watchdog()