Go to the source code of this file.
◆ _papi_getcpu
#define _papi_getcpu |
( |
| ) |
0 |
◆ F_GETOWN_EX
◆ F_OWNER_PGRP
◆ F_OWNER_PID
◆ F_OWNER_TID
◆ F_SETOWN_EX
◆ LINUX_VERSION
#define LINUX_VERSION |
( |
|
a, |
|
|
|
b, |
|
|
|
c |
|
) |
| ( ((a&0xff)<<24) | ((b&0xff)<<16) | ((c&0xff) << 8)) |
◆ min
Value: ({ \
(void) (&_min1 == &_min2); \
_min1 < _min2 ? _min1 : _min2; })
Definition at line 6 of file linux-common.h.
◆ _linux_detect_nmi_watchdog()
int _linux_detect_nmi_watchdog |
( |
| ) |
|
Definition at line 768 of file linux-common.c.
768 {
769
770 int watchdog_detected=0,watchdog_value=0;
772
773 fff=fopen(
"/proc/sys/kernel/nmi_watchdog",
"r");
775 if (fscanf(
fff,
"%d",&watchdog_value)==1) {
776 if (watchdog_value>0) watchdog_detected=1;
777 }
779 }
780
781 return watchdog_detected;
782}
int fclose(FILE *__stream)
◆ mygettid()
static pid_t mygettid |
( |
void |
| ) |
|
|
inlinestatic |
Definition at line 13 of file linux-common.h.
14{
15#if defined(__NEC__)
16 return 0;
17#else
18#ifdef SYS_gettid
19 return syscall( SYS_gettid );
20#elif defined(__NR_gettid)
21 return syscall( __NR_gettid );
22#else
23#error "cannot find gettid"
24#endif
25#endif
26}