We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16ab5c7 commit 95b802cCopy full SHA for 95b802c
tools/perf/util/syscalltbl.c
@@ -46,6 +46,14 @@ const char *syscalltbl__name(int e_machine, int id)
46
{
47
const struct syscalltbl *table = find_table(e_machine);
48
49
+ if (e_machine == EM_MIPS && id > 1000) {
50
+ /*
51
+ * MIPS may encode the N32/64/O32 type in the high part of
52
+ * syscall number. Mask this off if present. See the values of
53
+ * __NR_N32_Linux, __NR_64_Linux, __NR_O32_Linux and __NR_Linux.
54
+ */
55
+ id = id % 1000;
56
+ }
57
if (table && id >= 0 && id < table->num_to_name_len)
58
return table->num_to_name[id];
59
return NULL;
0 commit comments