linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* BUG: perf error on syscalls for powerpc64.
@ 2015-07-16  5:57 Zumeng Chen
  2015-07-16  9:04 ` Michael Ellerman
  0 siblings, 1 reply; 11+ messages in thread
From: Zumeng Chen @ 2015-07-16  5:57 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: linux-kernel, romeo.cane.ext, imunsie, mpe, paulus, benh

Hi All,

1028ccf5 did a change for sys_call_table from a pointer to an array of
unsigned long, I think it's not proper, here is my reason:

sys_call_table defined as a label in assembler should be pointer array
rather than an array as described in 1028ccf5. If we defined it as an
array, then arch_syscall_addr will return the address of sys_call_table[],
actually the content of sys_call_table[] is demanded by arch_syscall_addr.
so 'perf list' will ignore all syscalls since find_syscall_meta will
return null
in init_ftrace_syscalls because of the wrong arch_syscall_addr.

Did I miss something, or Gcc compiler has done something newer ?

Cheers,
Zumeng

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-07-21 23:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-16  5:57 BUG: perf error on syscalls for powerpc64 Zumeng Chen
2015-07-16  9:04 ` Michael Ellerman
2015-07-17  1:27   ` Zumeng Chen
2015-07-17  1:51     ` Sukadev Bhattiprolu
2015-07-17  1:59       ` Ian Munsie
2015-07-18  2:00         ` Zumeng Chen
2015-07-17  5:33       ` Zumeng Chen
2015-07-17  4:07     ` Michael Ellerman
2015-07-17  5:28       ` Zumeng Chen
2015-07-21  6:40         ` Michael Ellerman
2015-07-21 23:00           ` czm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).