search for: kprobe_entry

Displaying 20 results from an estimated 37 matches for "kprobe_entry".

2007 Apr 18
1
Patch: use .pushsection/.popsection
...lss 12+4(%esp), %esp # back to 16bit stack -1: INTERRUPT_RETURN - CFI_ENDPROC -.section __ex_table,"a" +1: iret + CFI_ENDPROC +.pushsection __ex_table,"a" .align 4 .long 1b,iret_exc -.previous +.popsection = #ifdef CONFIG_PARAVIRT ENTRY(nopara_iret) @@ -821,7 +821,7 @@ KPROBE_ENTRY(int3) call do_int3 jmp ret_from_exception CFI_ENDPROC -.previous +KPROBE_EXIT = ENTRY(overflow) RING0_INT_FRAME @@ -886,7 +886,7 @@ KPROBE_ENTRY(general_protection) CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROC -.previous +KPROBE_EXIT = ENTRY(alignment_check) RING0_EC_FRA...
2007 Apr 18
1
Patch: use .pushsection/.popsection
...lss 12+4(%esp), %esp # back to 16bit stack -1: INTERRUPT_RETURN - CFI_ENDPROC -.section __ex_table,"a" +1: iret + CFI_ENDPROC +.pushsection __ex_table,"a" .align 4 .long 1b,iret_exc -.previous +.popsection = #ifdef CONFIG_PARAVIRT ENTRY(nopara_iret) @@ -821,7 +821,7 @@ KPROBE_ENTRY(int3) call do_int3 jmp ret_from_exception CFI_ENDPROC -.previous +KPROBE_EXIT = ENTRY(overflow) RING0_INT_FRAME @@ -886,7 +886,7 @@ KPROBE_ENTRY(general_protection) CFI_ADJUST_CFA_OFFSET 4 jmp error_code CFI_ENDPROC -.previous +KPROBE_EXIT = ENTRY(alignment_check) RING0_EC_FRA...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 12/17] paravirt_ops - interrupt/exception changes
...SABLE_INTERRUPTS(CLBR_NONE) .if \trace TRACE_IRQS_OFF .endif @@ -798,9 +815,9 @@ paranoid_schedule\trace: .if \trace TRACE_IRQS_ON .endif - sti + ENABLE_INTERRUPTS(CLBR_NONE) call schedule - cli + DISABLE_INTERRUPTS(CLBR_NONE) .if \trace TRACE_IRQS_OFF .endif @@ -851,7 +868,7 @@ KPROBE_ENTRY(error_entry) testl $3,CS(%rsp) je error_kernelspace error_swapgs: - swapgs + SWAPGS error_sti: movq %rdi,RDI(%rsp) movq %rsp,%rdi @@ -862,7 +879,7 @@ error_sti: error_exit: movl %ebx,%eax RESTORE_REST - cli + DISABLE_INTERRUPTS(CLBR_NONE) TRACE_IRQS_OFF GET_THREAD_INFO(...
2007 Apr 18
0
[RFC/PATCH PV_OPS X86_64 12/17] paravirt_ops - interrupt/exception changes
...SABLE_INTERRUPTS(CLBR_NONE) .if \trace TRACE_IRQS_OFF .endif @@ -798,9 +815,9 @@ paranoid_schedule\trace: .if \trace TRACE_IRQS_ON .endif - sti + ENABLE_INTERRUPTS(CLBR_NONE) call schedule - cli + DISABLE_INTERRUPTS(CLBR_NONE) .if \trace TRACE_IRQS_OFF .endif @@ -851,7 +868,7 @@ KPROBE_ENTRY(error_entry) testl $3,CS(%rsp) je error_kernelspace error_swapgs: - swapgs + SWAPGS error_sti: movq %rdi,RDI(%rsp) movq %rsp,%rdi @@ -862,7 +879,7 @@ error_sti: error_exit: movl %ebx,%eax RESTORE_REST - cli + DISABLE_INTERRUPTS(CLBR_NONE) TRACE_IRQS_OFF GET_THREAD_INFO(...
2007 Apr 18
0
[RFC, PATCH 11/24] i386 Vmi segment changes
...or sysenter. */ #define FIX_STACK(offset, ok, label) \ - cmpw $__KERNEL_CS,4(%esp); \ + COMPARE_SEGMENT_STACK(__KERNEL_CS, 4) \ jne ok; \ label: \ movl TSS_sysenter_esp0+offset(%esp),%esp; \ pushfl; \ - pushl $__KERNEL_CS; \ + push %cs; \ pushl $sysenter_past_esp KPROBE_ENTRY(debug) @@ -530,10 +530,7 @@ debug_stack_correct: * fault happened on the sysenter path. */ ENTRY(nmi) - pushl %eax - movl %ss, %eax - cmpw $__ESPFIX_SS, %ax - popl %eax + COMPARE_SEGMENT_REG(__ESPFIX_SS, %ss) je nmi_16bit_stack cmpl $sysenter_entry,(%esp) je nmi_stack_fixup @@ -560,7 +55...
2007 Apr 18
0
[RFC, PATCH 11/24] i386 Vmi segment changes
...or sysenter. */ #define FIX_STACK(offset, ok, label) \ - cmpw $__KERNEL_CS,4(%esp); \ + COMPARE_SEGMENT_STACK(__KERNEL_CS, 4) \ jne ok; \ label: \ movl TSS_sysenter_esp0+offset(%esp),%esp; \ pushfl; \ - pushl $__KERNEL_CS; \ + push %cs; \ pushl $sysenter_past_esp KPROBE_ENTRY(debug) @@ -530,10 +530,7 @@ debug_stack_correct: * fault happened on the sysenter path. */ ENTRY(nmi) - pushl %eax - movl %ss, %eax - cmpw $__ESPFIX_SS, %ax - popl %eax + COMPARE_SEGMENT_REG(__ESPFIX_SS, %ss) je nmi_16bit_stack cmpl $sysenter_entry,(%esp) je nmi_stack_fixup @@ -560,7 +55...
2007 Apr 18
5
[PATCH] paravirt.h
...NTERRUPTS; TRACE_IRQS_OFF #else @@ -809,6 +802,19 @@ 1: INTERRUPT_RETURN .long 1b,iret_exc .previous +#ifdef CONFIG_PARAVIRT +ENTRY(nopara_iret) +1: iret +.section __ex_table,"a" + .align 4 + .long 1b,iret_exc +.previous + +ENTRY(nopara_irq_enable_sysexit) + sti + sysexit +#endif + KPROBE_ENTRY(int3) RING0_INT_FRAME pushl $-1 # mark this as an int =================================================================== --- a/include/asm-i386/desc.h +++ b/include/asm-i386/desc.h @@ -64,6 +64,9 @@ static inline void pack_gate(__u32 *a, _ #define DESCTYPE_DPL3 0x60 /* DPL-3 */ #define DES...
2007 Apr 18
5
[PATCH] paravirt.h
...NTERRUPTS; TRACE_IRQS_OFF #else @@ -809,6 +802,19 @@ 1: INTERRUPT_RETURN .long 1b,iret_exc .previous +#ifdef CONFIG_PARAVIRT +ENTRY(nopara_iret) +1: iret +.section __ex_table,"a" + .align 4 + .long 1b,iret_exc +.previous + +ENTRY(nopara_irq_enable_sysexit) + sti + sysexit +#endif + KPROBE_ENTRY(int3) RING0_INT_FRAME pushl $-1 # mark this as an int =================================================================== --- a/include/asm-i386/desc.h +++ b/include/asm-i386/desc.h @@ -64,6 +64,9 @@ static inline void pack_gate(__u32 *a, _ #define DESCTYPE_DPL3 0x60 /* DPL-3 */ #define DES...
2007 Apr 18
0
[PATCH 6/6] VMI timer patches
...is where all of the SMP etc. interrupts come from */ #include "entry_arch.h" +/* This alternate entry is needed because we hijack the apic LVTT */ +#if defined(CONFIG_VMI) && defined(CONFIG_X86_LOCAL_APIC) +BUILD_INTERRUPT(apic_vmi_timer_interrupt,LOCAL_TIMER_VECTOR) +#endif + KPROBE_ENTRY(page_fault) RING0_EC_FRAME pushl $do_page_fault diff -r 77e4058e936b arch/i386/kernel/paravirt.c --- a/arch/i386/kernel/paravirt.c Thu Dec 14 16:40:14 2006 -0800 +++ b/arch/i386/kernel/paravirt.c Thu Dec 14 16:40:16 2006 -0800 @@ -544,6 +544,8 @@ struct paravirt_ops paravirt_ops = { .apic_wri...
2007 Apr 18
0
[PATCH 6/6] VMI timer patches
...is where all of the SMP etc. interrupts come from */ #include "entry_arch.h" +/* This alternate entry is needed because we hijack the apic LVTT */ +#if defined(CONFIG_VMI) && defined(CONFIG_X86_LOCAL_APIC) +BUILD_INTERRUPT(apic_vmi_timer_interrupt,LOCAL_TIMER_VECTOR) +#endif + KPROBE_ENTRY(page_fault) RING0_EC_FRAME pushl $do_page_fault diff -r 77e4058e936b arch/i386/kernel/paravirt.c --- a/arch/i386/kernel/paravirt.c Thu Dec 14 16:40:14 2006 -0800 +++ b/arch/i386/kernel/paravirt.c Thu Dec 14 16:40:16 2006 -0800 @@ -544,6 +544,8 @@ struct paravirt_ops paravirt_ops = { .apic_wri...
2007 Apr 18
0
[PATCH 5/5] Vmi timer.patch
...is where all of the SMP etc. interrupts come from */ #include "entry_arch.h" +/* This alternate entry is needed because we hijack the apic LVTT */ +#if defined(CONFIG_VMI) && defined(CONFIG_X86_LOCAL_APIC) +BUILD_INTERRUPT(apic_vmi_timer_interrupt,LOCAL_TIMER_VECTOR) +#endif + KPROBE_ENTRY(page_fault) RING0_EC_FRAME pushl $do_page_fault diff -r d1ec5a6e3e8c arch/i386/kernel/paravirt.c --- a/arch/i386/kernel/paravirt.c Tue Dec 12 13:53:09 2006 -0800 +++ b/arch/i386/kernel/paravirt.c Tue Dec 12 13:53:15 2006 -0800 @@ -544,6 +544,8 @@ struct paravirt_ops paravirt_ops = { .apic_wri...
2007 Apr 18
0
[PATCH 5/5] Vmi timer.patch
...is where all of the SMP etc. interrupts come from */ #include "entry_arch.h" +/* This alternate entry is needed because we hijack the apic LVTT */ +#if defined(CONFIG_VMI) && defined(CONFIG_X86_LOCAL_APIC) +BUILD_INTERRUPT(apic_vmi_timer_interrupt,LOCAL_TIMER_VECTOR) +#endif + KPROBE_ENTRY(page_fault) RING0_EC_FRAME pushl $do_page_fault diff -r d1ec5a6e3e8c arch/i386/kernel/paravirt.c --- a/arch/i386/kernel/paravirt.c Tue Dec 12 13:53:09 2006 -0800 +++ b/arch/i386/kernel/paravirt.c Tue Dec 12 13:53:15 2006 -0800 @@ -544,6 +544,8 @@ struct paravirt_ops paravirt_ops = { .apic_wri...
2007 Oct 31
3
[PATCH 0/7] (Re-)introducing pvops for x86_64 - Consolidation part
Hi folks, Here is the result of the latest work on the pvops front, after the x86 arch merge. From the functionality point of view, almost nothing was changed, except for proper vsmp support - which was discussed, but not implemented before - and the introduction of smp_ops in x86_64, which eased the merging of the smp header. Speaking of the merge, a significant part (although not majority) of
2007 Oct 31
3
[PATCH 0/7] (Re-)introducing pvops for x86_64 - Consolidation part
Hi folks, Here is the result of the latest work on the pvops front, after the x86 arch merge. From the functionality point of view, almost nothing was changed, except for proper vsmp support - which was discussed, but not implemented before - and the introduction of smp_ops in x86_64, which eased the merging of the smp header. Speaking of the merge, a significant part (although not majority) of
2007 Apr 18
2
[PATCH] x86_64 paravirt_ops port
...iret); + ENTRY(read_cr0); +#endif + return 0; } Index: linux-2.6.19-quilt/arch/x86_64/kernel/entry.S =================================================================== --- linux-2.6.19-quilt.orig/arch/x86_64/kernel/entry.S +++ linux-2.6.19-quilt/arch/x86_64/kernel/entry.S @@ -1064,6 +1064,22 @@ KPROBE_ENTRY(int3) CFI_ENDPROC KPROBE_END(int3) +#ifdef CONFIG_PARAVIRT +ENTRY(native_iret) +1: iretq +.section __ex_table,"a" + .align 8 + .quad 1b, bad_iret +.previous +ENDPROC(native_iret) + +ENTRY(native_irq_enable_sysexit) + sti + sysretq +ENDPROC(native_irq_enable_sysexit) + +#endif /* CON...
2007 Apr 18
2
[PATCH] x86_64 paravirt_ops port
...iret); + ENTRY(read_cr0); +#endif + return 0; } Index: linux-2.6.19-quilt/arch/x86_64/kernel/entry.S =================================================================== --- linux-2.6.19-quilt.orig/arch/x86_64/kernel/entry.S +++ linux-2.6.19-quilt/arch/x86_64/kernel/entry.S @@ -1064,6 +1064,22 @@ KPROBE_ENTRY(int3) CFI_ENDPROC KPROBE_END(int3) +#ifdef CONFIG_PARAVIRT +ENTRY(native_iret) +1: iretq +.section __ex_table,"a" + .align 8 + .quad 1b, bad_iret +.previous +ENDPROC(native_iret) + +ENTRY(native_irq_enable_sysexit) + sti + sysretq +ENDPROC(native_irq_enable_sysexit) + +#endif /* CON...
2007 Apr 18
3
[PATCH 1/2] paravirt.h header
...================================================= --- a/arch/i386/kernel/entry.S +++ b/arch/i386/kernel/entry.S @@ -803,6 +803,15 @@ 1: INTERRUPT_RETURN .long 1b,iret_exc .previous +#ifdef CONFIG_PARAVIRT +ENTRY(nopara_iret) + iret + +ENTRY(nopara_irq_enable_sysexit) + sti + sysexit +#endif + KPROBE_ENTRY(int3) RING0_INT_FRAME pushl $-1 # mark this as an int =================================================================== --- a/include/asm-i386/msr.h +++ b/include/asm-i386/msr.h @@ -1,5 +1,9 @@ #ifndef __ASM_MSR_H #define __ASM_MSR_H + +#ifdef CONFIG_PARAVIRT +#include <asm/paravirt.h&...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...SABLE_INTERRUPTS(CLBR_NONE) TRACE_IRQS_OFF GET_THREAD_INFO(%rcx) testl %eax,%eax @@ -904,7 +899,7 @@ ENTRY(load_gs_index) CFI_STARTPROC pushf CFI_ADJUST_CFA_OFFSET 8 - cli + DISABLE_INTERRUPTS(CLBR_NONE) swapgs gs_change: movl %edi,%gs @@ -1065,18 +1060,32 @@ KPROBE_ENTRY(int3) KPROBE_END(int3) #ifdef CONFIG_PARAVIRT +/* Not yet working. Do not use */ +ENTRY(native_swapgs) + swapgs + jmp %cs:(paravirt_ops+PARAVIRT_swapgs) +ENDPROC(native_swapgs) + ENTRY(native_iret) 1: iretq .section __ex_table,"a" .align 8 .quad 1b, bad_iret .previous +.secti...
2007 Apr 18
0
[PATCH] paravirt_ops x86_64 , take 2
...SABLE_INTERRUPTS(CLBR_NONE) TRACE_IRQS_OFF GET_THREAD_INFO(%rcx) testl %eax,%eax @@ -904,7 +899,7 @@ ENTRY(load_gs_index) CFI_STARTPROC pushf CFI_ADJUST_CFA_OFFSET 8 - cli + DISABLE_INTERRUPTS(CLBR_NONE) swapgs gs_change: movl %edi,%gs @@ -1065,18 +1060,32 @@ KPROBE_ENTRY(int3) KPROBE_END(int3) #ifdef CONFIG_PARAVIRT +/* Not yet working. Do not use */ +ENTRY(native_swapgs) + swapgs + jmp %cs:(paravirt_ops+PARAVIRT_swapgs) +ENDPROC(native_swapgs) + ENTRY(native_iret) 1: iretq .section __ex_table,"a" .align 8 .quad 1b, bad_iret .previous +.secti...
2007 Apr 18
1
[PATCH 9/10] Vmi timer update.patch
...is where all of the SMP etc. interrupts come from */ #include "entry_arch.h" -/* This alternate entry is needed because we hijack the apic LVTT */ -#if defined(CONFIG_VMI) && defined(CONFIG_X86_LOCAL_APIC) -BUILD_INTERRUPT(apic_vmi_timer_interrupt,LOCAL_TIMER_VECTOR) -#endif - KPROBE_ENTRY(page_fault) RING0_EC_FRAME pushl $do_page_fault diff -r c02ab981c99c arch/i386/kernel/vmiclock.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/arch/i386/kernel/vmiclock.c Mon Apr 09 15:47:17 2007 -0700 @@ -0,0 +1,318 @@ +/* + * VMI paravirtual timer support routines. + * + * Copyright (C)...