Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168AbcKRA0f (ORCPT ); Thu, 17 Nov 2016 19:26:35 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:34959 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbcKRA0c (ORCPT ); Thu, 17 Nov 2016 19:26:32 -0500 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 v3 0/2] perf: measure page fault duration in perf trace Date: Fri, 18 Nov 2016 01:21:36 +0100 Message-Id: <20161118002138.29150-1-alexis.berlemont@gmail.com> X-Mailer: git-send-email 2.10.2 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: 763 Lines: 24 Hi, Here is another attempt to make the perf-trace subcommand print the page fault durations. This solution is based on static tracepoints and it was necessary to add 2 more tracepoints. I understood that adding tracepoints is a questionable solution; I can try something else if someone has another idea. Alexis. Alexis Berlemont (2): perf, x86-mm: declare page-faults tracepoints like irq-vectors ones perf: add page fault duration measures in perf trace arch/x86/include/asm/trace/exceptions.h | 17 ++- arch/x86/mm/fault.c | 17 ++- tools/perf/Documentation/perf-trace.txt | 4 +- tools/perf/builtin-trace.c | 231 ++++++++++++++++++++++++++++---- 4 files changed, 238 insertions(+), 31 deletions(-) -- 2.10.2