Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034367AbcJ0Xfo (ORCPT ); Thu, 27 Oct 2016 19:35:44 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36484 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034149AbcJ0Xfn (ORCPT ); Thu, 27 Oct 2016 19:35:43 -0400 From: Alexis Berlemont To: linux-kernel@vger.kernel.org Cc: Alexis Berlemont , peterz@infradead.org, mingo@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com Subject: [PATCH v2] perf, x86-mm: declare page-faults tracepoints like irq-vectors ones Date: Fri, 28 Oct 2016 01:31:33 +0200 Message-Id: <20161027233134.12117-1-alexis.berlemont@gmail.com> X-Mailer: git-send-email 2.10.1 In-Reply-To: <20161027083714.GF3568@worktop.programming.kicks-ass.net> References: <20161027083714.GF3568@worktop.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1000 Lines: 27 So, would you be OK with the following patch ? There is a symmetry just like irq_vectors tracepoints: # perf list | grep -E "exception|irq_vectors" exceptions:page_fault_kernel_entry [Tracepoint event] exceptions:page_fault_kernel_exit [Tracepoint event] exceptions:page_fault_user_entry [Tracepoint event] exceptions:page_fault_user_exit [Tracepoint event] irq_vectors:call_function_entry [Tracepoint event] irq_vectors:call_function_exit [Tracepoint event] ... Maybe 2 tracepoints (instead of 4) should have been enough; however, there were already 1 tracepoint per mode before. Alexis. Alexis Berlemont (1): perf, x86-mm: declare page-faults tracepoints like irq-vectors ones arch/x86/include/asm/trace/exceptions.h | 17 ++++++++++++++++- arch/x86/mm/fault.c | 17 ++++++++++++++--- 2 files changed, 30 insertions(+), 4 deletions(-) -- 2.10.1