1. 24 Jun, 2014 1 commit
  2. 23 Apr, 2014 2 commits
  3. 07 Mar, 2014 2 commits
  4. 28 Feb, 2014 1 commit
  5. 11 Oct, 2013 1 commit
  6. 27 Jul, 2012 1 commit
  7. 11 Jul, 2012 1 commit
  8. 03 Jul, 2012 2 commits
  9. 26 May, 2011 1 commit
    • Ian Munsie's avatar
      powerpc/ftrace: Implement raw syscall tracepoints on PowerPC · 02424d89
      Ian Munsie authored
      
      
      This patch implements the raw syscall tracepoints on PowerPC and exports
      them for ftrace syscalls to use.
      
      To minimise reworking existing code, I slightly re-ordered the thread
      info flags such that the new TIF_SYSCALL_TRACEPOINT bit would still fit
      within the 16 bits of the andi. instruction's UI field. The instructions
      in question are in /arch/powerpc/kernel/entry_{32,64}.S to and the
      _TIF_SYSCALL_T_OR_A with the thread flags to see if system call tracing
      is enabled.
      
      In the case of 64bit PowerPC, arch_syscall_addr and
      arch_syscall_match_sym_name are overridden to allow ftrace syscalls to
      work given the unusual system call table structure and symbol names that
      start with a period.
      Signed-off-by: default avatarIan Munsie <imunsie@au1.ibm.com>
      Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
      02424d89
  10. 18 Jun, 2009 1 commit
    • Steven Rostedt's avatar
      function-graph: add stack frame test · 71e308a2
      Steven Rostedt authored
      
      
      In case gcc does something funny with the stack frames, or the return
      from function code, we would like to detect that.
      
      An arch may implement passing of a variable that is unique to the
      function and can be saved on entering a function and can be tested
      when exiting the function. Usually the frame pointer can be used for
      this purpose.
      
      This patch also implements this for x86. Where it passes in the stack
      frame of the parent function, and will test that frame on exit.
      
      There was a case in x86_32 with optimize for size (-Os) where, for a
      few functions, gcc would align the stack frame and place a copy of the
      return address into it. The function graph tracer modified the copy and
      not the actual return address. On return from the funtion, it did not go
      to the tracer hook, but returned to the parent. This broke the function
      graph tracer, because the return of the parent (where gcc did not do
      this funky manipulation) returned to the location that the child function
      was suppose to. This caused strange kernel crashes.
      
      This test detected the problem and pointed out where the issue was.
      
      This modifies the parameters of one of the functions that the arch
      specific code calls, so it includes changes to arch code to accommodate
      the new prototype.
      
      Note, I notice that the parsic arch implements its own push_return_trace.
      This is now a generic function and the ftrace_push_return_trace should be
      used instead. This patch does not touch that code.
      
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Frederic Weisbecker <fweisbec@gmail.com>
      Cc: Helge Deller <deller@gmx.de>
      Cc: Kyle McMartin <kyle@mcmartin.ca>
      Signed-off-by: default avatarSteven Rostedt <rostedt@goodmis.org>
      71e308a2
  11. 02 Jun, 2009 3 commits
  12. 18 May, 2009 2 commits
  13. 07 Apr, 2009 2 commits
  14. 01 Apr, 2009 1 commit
    • Stephen Rothwell's avatar
      tracing, powerpc: fix powerpc tree and tracing tree interaction · a095bdbb
      Stephen Rothwell authored
      Today's linux-next build (powerpc allyesconfig) failed like this:
      
      arch/powerpc/kernel/ftrace.c: In function 'prepare_ftrace_return':
      arch/powerpc/kernel/ftrace.c:612: warning: passing argument 3 of 'ftrace_push_return_trace' makes pointer from integer without a cast
      arch/powerpc/kernel/ftrace.c:612: error: too many arguments to function 'ftrace_push_return_trace'
      
      Caused by commit 5d1a03dc
      ("function-graph: moved the timestamp from arch to generic code") from
      the tracing tree which (removed an argument from
      ftrace_push_return_trace()) interacting with commit
      6794c782
      
       ("powerpc64: port of the
      function graph tracer") from the powerpc tree.
      Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
      Cc: Steven Rostedt <srostedt@redhat.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: <linuxppc-dev@ozlabs.org>
      LKML-Reference: <20090327230834.93d0221d.sfr@canb.auug.org.au>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      a095bdbb
  15. 22 Feb, 2009 9 commits
  16. 10 Feb, 2009 1 commit
  17. 28 Nov, 2008 3 commits
  18. 20 Nov, 2008 4 commits
  19. 23 Oct, 2008 2 commits