]> git.baikalelectronics.ru Git - kernel.git/commit
x86, trace: Add page fault tracepoints
authorSeiji Aguchi <seiji.aguchi@hds.com>
Wed, 30 Oct 2013 20:39:03 +0000 (16:39 -0400)
committerH. Peter Anvin <hpa@linux.intel.com>
Fri, 8 Nov 2013 22:15:49 +0000 (14:15 -0800)
commit7a2530ebc427fbd9360e1e1c201354c42463fefa
tree133e7788eb885d11cecc0590184f8825f4c0836f
parent968d2fb833147aa3f0fd76ce2504d151ffc3b716
x86, trace: Add page fault tracepoints

This patch introduces page fault tracepoints to x86 architecture
by switching IDT.

  Two events, for user and kernel spaces, are introduced at the beginning
  of page fault handler for tracing.

  - User space event
    There is a request of page fault event for user space as below.

    https://lkml.kernel.org/r/1368079520-11015-2-git-send-email-fdeslaur+()+gmail+!+com
    https://lkml.kernel.org/r/1368079520-11015-1-git-send-email-fdeslaur+()+gmail+!+com

  - Kernel space event:
    When we measure an overhead in kernel space for investigating performance
    issues, we can check if it comes from the page fault events.

Signed-off-by: Seiji Aguchi <seiji.aguchi@hds.com>
Link: http://lkml.kernel.org/r/52716E67.6090705@hds.com
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/include/asm/trace/exceptions.h [new file with mode: 0644]
arch/x86/mm/Makefile
arch/x86/mm/fault.c