History

checkasm: improve Linux perf error message

Report the failing system call name, as is convention, rather than just a rather unhelpful "syscall".

Rémi Denis-Courmont committed 3 years ago

Commit f25ad0f1 parent 983af741 file · +1 −1Browse files

Unified · Split

tests/checkasm/checkasm.c+1−1
@@ -667,7 +667,7 @@ static int bench_init_linux(void) · 666 unmodified lines
667667
668668 state.sysfd = syscall(__NR_perf_event_open, &attr, 0, -1, -1, 0);
669669 if (state.sysfd == -1) {
670− perror("syscall");
670+ perror("perf_event_open");
671671 return -1;
672672 }
673673 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t