26 Apr, 2008

1 commit


17 Apr, 2008

4 commits


30 Jan, 2008

15 commits

  • Choose a less generic name for such a special case. Add
    a comment explaining the odd use in X86_32.

    Change the one user of stack_pointer.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Harvey Harrison
     
  • Leave definition of pt_regs in its own section, move all kernel
    code to section afterwards, unify prototype definitions, has some
    conditional prototypes to make it clear what was only defined in
    32 and 64 bit.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Harvey Harrison
     
  • Unify the definiton of:
    v8086_mode
    user_mode
    user_mode_vm
    stack_pointer
    instruction_pointer
    frame_pointer

    in ptrace.h to make it clear where the differences are between
    32 and 64 bit. Changes macros to static inlines as well.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Harvey Harrison
     
  • is_prefetch was the last user of get_segment_eip and only on
    X86_32. This function returned the faulting instruction's
    address and set the upper segment limit.

    Instead, use the convert_ip_to_linear helper and rely on
    probe_kernel_address to do the segment checks which was
    already done everywhere the segment limit was being checked
    on X86_32.

    Remove get_segment_eip as well.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Harvey Harrison
     
  • Rename convert_rip_to_linear to convert_ip_to_linear for shared
    X86_32|64 use.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Harvey Harrison
     
  • get_segment_eip has similarities to convert_rip_to_linear(),
    and is used in a similar context. Move get_segment_eip to
    step.c to allow easier consolidation.

    Signed-off-by: Harvey Harrison
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Harvey Harrison
     
  • Here's the new ptrace BTS API that supports two different overflow handling mechanisms (wrap-around and buffer-full-signal) to support two different use cases (debugging and profiling).

    It further combines buffer allocation and configuration.

    Opens:
    - memory rlimit
    - overflow signal

    What would be the right signal to use?

    Signed-off-by: Markus Metzger
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Markus Metzger
     
  • Resend using different mail client

    Changes to the last version:
    - split implementation into two layers: ds/bts and ptrace
    - renamed TIF's
    - save/restore ds save area msr in __switch_to_xtra()
    - make block-stepping only look at BTF bit

    Signed-off-by: Markus Metzger
    Signed-off-by: Suresh Siddha
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Markus Metzger
     
  • This switches over the 64-bit build to use the shared ptrace code,
    instead of the old ptrace_64.c and arch/x86/ia32/ptrace32.c code.

    Signed-off-by: Roland McGrath
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • This removes the EF_* enum from . It is no longer used,
    and duplicates the X86_EFLAGS_* constants from .

    Signed-off-by: Roland McGrath
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • We have a lot of code which differs only by the naming of specific
    members of structures that contain registers. In order to enable
    additional unifications, this patch drops the e- or r- size prefix
    from the register names in struct pt_regs, and drops the x- prefixes
    for segment registers on the 32-bit side.

    This patch also performs the equivalent renames in some additional
    places that might be candidates for unification in the future.

    Signed-off-by: H. Peter Anvin
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    H. Peter Anvin
     
  • This implements user-mode step-until-branch on x86 using the BTF bit
    in MSR_IA32_DEBUGCTLMSR. It's just like single-step, only less so.

    Signed-off-by: Roland McGrath
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • This cleans up the 64-bit ptrace code to separate the guts of the
    debug register access from the implementation of PTRACE_PEEKUSR and
    PTRACE_POKEUSR. The new functions ptrace_[gs]et_debugreg are made
    global so that the ia32 code can later be changed to call them too.

    Signed-off-by: Roland McGrath
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • This defines the new standard arch_has_single_step macro. It makes the
    existing set_singlestep and clear_singlestep entry points global, and
    renames them to the new standard names user_enable_single_step and
    user_disable_single_step, respectively.

    Signed-off-by: Roland McGrath
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     
  • This consolidates the four different places that implemented the same
    encoding magic for the GDT-slot 32-bit TLS support. The old tls32.c was
    renamed and is now only slightly modified to be the shared implementation.

    Signed-off-by: Roland McGrath
    Cc: Andrew Morton
    Cc: Zachary Amsden
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Ingo Molnar
    Signed-off-by: Thomas Gleixner

    Roland McGrath
     

15 Nov, 2007

1 commit

  • x86 32-bit isn't saving the stack pointer to pt_regs->esp when an
    interrupt occurs.

    Signed-off-by: Jan Blunck
    Tested-by: Robert Fitzsimons
    Cc: Andi Kleen
    Cc: Ingo Molnar
    Cc: Thomas Gleixner
    Cc: Philippe Elie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jan Blunck
     

24 Oct, 2007

1 commit


11 Oct, 2007

1 commit