]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/pt: Add interface to stop Intel PT logging
authorTakao Indoh <indou.takao@jp.fujitsu.com>
Wed, 4 Nov 2015 05:22:32 +0000 (14:22 +0900)
committerIngo Molnar <mingo@kernel.org>
Mon, 23 Nov 2015 08:58:26 +0000 (09:58 +0100)
commit95bb7da07b5a5e49a2015a9bce31fe3258c168bf
treece91cd063c2ad9a2a9566ca915ba9c2d33f19c5c
parent59eae161b26504a2f3afc833bccd91e5f832dfcb
perf/x86/intel/pt: Add interface to stop Intel PT logging

This patch add a function for external components to stop Intel PT.
Basically this function is used when kernel panic occurs. When it is
called, the intel_pt driver disables Intel PT and saves its registers
using pt_event_stop(), which is also used by pmu.stop handler.

This function stops Intel PT on the CPU where it is working, therefore
users of it need to call it for each CPU to stop all logging.

Signed-off-by: Takao Indoh <indou.takao@jp.fujitsu.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Alexander Shishkin<alexander.shishkin@linux.intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: H.Peter Anvin <hpa@zytor.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Vince Weaver <vincent.weaver@maine.edu>
Cc: Vivek Goyal <vgoyal@redhat.com>
Link: http://lkml.kernel.org/r/1446614553-6072-2-git-send-email-indou.takao@jp.fujitsu.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/include/asm/intel_pt.h [new file with mode: 0644]
arch/x86/kernel/cpu/perf_event_intel_pt.c