Skip to content
  1. Dec 20, 2008
    • Markus Metzger's avatar
      x86, bts: memory accounting · c5dee617
      Markus Metzger authored
      
      
      Impact: move the BTS buffer accounting to the mlock bucket
      
      Add alloc_locked_buffer() and free_locked_buffer() functions to mm/mlock.c
      to kalloc a buffer and account the locked memory to current.
      
      Account the memory for the BTS buffer to the tracer.
      
      Signed-off-by: default avatarMarkus Metzger <markus.t.metzger@intel.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      c5dee617
    • Markus Metzger's avatar
      x86, bts: add fork and exit handling · bf53de90
      Markus Metzger authored
      
      
      Impact: introduce new ptrace facility
      
      Add arch_ptrace_untrace() function that is called when the tracer
      detaches (either voluntarily or when the tracing task dies);
      ptrace_disable() is only called on a voluntary detach.
      
      Add ptrace_fork() and arch_ptrace_fork(). They are called when a
      traced task is forked.
      
      Clear DS and BTS related fields on fork.
      
      Release DS resources and reclaim memory in ptrace_untrace(). This
      releases resources already when the tracing task dies. We used to do
      that when the traced task dies.
      
      Signed-off-by: default avatarMarkus Metzger <markus.t.metzger@intel.com>
      Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
      bf53de90
  2. Dec 19, 2008
  3. Dec 18, 2008
  4. Dec 17, 2008