Report the failing system call name, as is convention, rather than just a rather unhelpful "syscall".
Unified · Split
| @@ -667,7 +667,7 @@ static int bench_init_linux(void) · 666 unmodified lines | ||
| 667 | 667 | |
| 668 | 668 | state.sysfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, 0); |
| 669 | 669 | if (state.sysfd == -1) { |
| 670 | − perror("syscall"); | |
| 670 | + perror("perf_event_open"); | |
| 671 | 671 | return -1; |
| 672 | 672 | } |
| 673 | 673 | return 0; |