1. 23 10月, 2008 2 次提交
  2. 23 7月, 2008 1 次提交
    • V
      x86: consolidate header guards · 77ef50a5
      Vegard Nossum 提交于
      This patch is the result of an automatic script that consolidates the
      format of all the headers in include/asm-x86/.
      
      The format:
      
      1. No leading underscore. Names with leading underscores are reserved.
      2. Pathname components are separated by two underscores. So we can
         distinguish between mm_types.h and mm/types.h.
      3. Everything except letters and numbers are turned into single
         underscores.
      Signed-off-by: NVegard Nossum <vegard.nossum@gmail.com>
      77ef50a5
  3. 17 7月, 2008 1 次提交
    • R
      x86 ptrace: unify syscall tracing · d4d67150
      Roland McGrath 提交于
      This unifies and cleans up the syscall tracing code on i386 and x86_64.
      
      Using a single function for entry and exit tracing on 32-bit made the
      do_syscall_trace() into some terrible spaghetti.  The logic is clear and
      simple using separate syscall_trace_enter() and syscall_trace_leave()
      functions as on 64-bit.
      
      The unification adds PTRACE_SYSEMU and PTRACE_SYSEMU_SINGLESTEP support
      on x86_64, for 32-bit ptrace() callers and for 64-bit ptrace() callers
      tracing either 32-bit or 64-bit tasks.  It behaves just like 32-bit.
      
      Changing syscall_trace_enter() to return the syscall number shortens
      all the assembly paths, while adding the SYSEMU feature in a simple way.
      Signed-off-by: NRoland McGrath <roland@redhat.com>
      d4d67150
  4. 13 5月, 2008 1 次提交
    • M
      x86, ptrace: PEBS support · 93fa7636
      Markus Metzger 提交于
      Polish the ds.h interface and add support for PEBS.
      
      Ds.c is meant to be the resource allocator for per-thread and per-cpu
      BTS and PEBS recording.
      It is used by ptrace/utrace to provide execution tracing of debugged tasks.
      It will be used by profilers (e.g. perfmon2).
      It may be used by kernel debuggers to provide a kernel execution trace.
      
      Changes in detail:
      - guard DS and ptrace by CONFIG macros
      - separate DS and BTS more clearly
      - simplify field accesses
      - add functions to manage PEBS buffers
      - add simple protection/allocation mechanism
      - added support for Atom
      
      Opens:
      - buffer overflow handling
        Currently, only circular buffers are supported. This is all we need
        for debugging. Profilers would want an overflow notification.
        This is planned to be added when perfmon2 is made to use the ds.h
        interface.
      - utrace intermediate layer
      Signed-off-by: NMarkus Metzger <markus.t.metzger@intel.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      93fa7636
  5. 01 3月, 2008 1 次提交
    • D
      x86 ptrace: fix ptrace_bts_config structure declaration · 53c58588
      Dave Anderson 提交于
      The 2.6.25 ptrace_bts_config structure in asm-x86/ptrace-abi.h
      is defined with u32 types:
      
         #include <asm/types.h>
      
         /* configuration/status structure used in PTRACE_BTS_CONFIG and
            PTRACE_BTS_STATUS commands.
         */
         struct ptrace_bts_config {
                 /* requested or actual size of BTS buffer in bytes */
                 u32 size;
                 /* bitmask of below flags */
                 u32 flags;
                 /* buffer overflow signal */
                 u32 signal;
                 /* actual size of bts_struct in bytes */
                 u32 bts_size;
         };
         #endif
      
      But u32 is only accessible in asm-x86/types.h if __KERNEL__,
      leading to compile errors when ptrace.h is included from
      user-space. The double-underscore versions that are exported
      to user-space in asm-x86/types.h should be used instead.
      Signed-off-by: NDave Anderson <anderson@redhat.com>
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      53c58588
  6. 30 1月, 2008 9 次提交
  7. 18 10月, 2007 1 次提交
  8. 11 10月, 2007 1 次提交