From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756512AbcKVTHD (ORCPT ); Tue, 22 Nov 2016 14:07:03 -0500 Received: from [193.170.194.197] ([193.170.194.197]:57150 "EHLO one.firstfloor.org" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1755766AbcKVTHC (ORCPT ); Tue, 22 Nov 2016 14:07:02 -0500 Date: Tue, 22 Nov 2016 11:05:50 -0800 From: Andi Kleen To: Steven Rostedt Cc: Andi Kleen , Peter Zijlstra , Jiri Olsa , "Paul E. McKenney" , linux-kernel@vger.kernel.org, Ingo Molnar , Josh Triplett , Jan Stancek Subject: Re: [BUG] msr-trace.h:42 suspicious rcu_dereference_check() usage! Message-ID: <20161122190550.GZ26852@two.firstfloor.org> References: <20161121005343.GB1891@krava> <20161121092850.GF3102@twins.programming.kicks-ass.net> <20161121170612.GT26852@two.firstfloor.org> <20161121171853.GK3092@twins.programming.kicks-ass.net> <20161121174504.GU26852@two.firstfloor.org> <20161121130115.2f0f38e7@gandalf.local.home> <20161121180654.GV26852@two.firstfloor.org> <20161121132220.17fb0515@gandalf.local.home> <20161121183700.GW26852@two.firstfloor.org> <20161122093945.370f0b72@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20161122093945.370f0b72@gandalf.local.home> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 22, 2016 at 09:39:45AM -0500, Steven Rostedt wrote: > On Mon, 21 Nov 2016 10:37:00 -0800 > Andi Kleen wrote: > > > > Here is it again untruncated: > > > > http://halobates.de/tracepoint-trace > > BTW, what tool did you use to generate this? perf and Intel PT, with the disassembler patches added and udis86 installed: https://git.kernel.org/cgit/linux/kernel/git/ak/linux-misc.git/log/?h=perf/disassembler-2 http://udis86.sourceforge.net/ You need a CPU that supports PT, like Broadwell, Skylake, Goldmont. # enable trace point perf record -e intel_pt// -a sleep X perf script --itrace=i0ns --ns -F cpu,ip,time,asm,sym On Skylake can also get more accurate timing by enabling cycle timing (at the cost of some overhead) perf record -e intel_pt/cyc=1,cyc_thresh=1/ -a ... The earlier trace didn't have that enabled. -Andi