Searched refs:hwfd (Results 1 – 1 of 1) sorted by relevance
/external/ltp/testcases/kernel/syscalls/perf_event_open/ |
D | perf_event_open02.c | 98 static int hwfd[MAX_CTRS], tskfd[MAX_CTRS]; variable 257 hwfd[i] = perf_event_open(&hw_event, 0, -1, -1, 0); in setup() 259 hwfd[i], 0); in setup() 260 if (tskfd[i] == -1 || hwfd[i] == -1) { in setup() 273 if (hwfd[i] > 0 && close(hwfd[i]) == -1) in cleanup() 274 tst_resm(TWARN | TERRNO, "close(%d) failed", hwfd[i]); in cleanup() 309 read(hwfd[i], &vh[i], sizeof(vh[i])) != sizeof(vh[i])) { in verify()
|