Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941398AbdDTFZE (ORCPT ); Thu, 20 Apr 2017 01:25:04 -0400 Received: from mail-qt0-f196.google.com ([209.85.216.196]:36036 "EHLO mail-qt0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937366AbdDTFZC (ORCPT ); Thu, 20 Apr 2017 01:25:02 -0400 Subject: Re: [PATCH] of: introduce event tracepoints for dynamic device_node lifecyle To: Steven Rostedt References: <1492475525-10827-1-git-send-email-tyreld@linux.vnet.ibm.com> <58F6AA35.2040902@gmail.com> <87efwp6v4e.fsf@concordia.ellerman.id.au> <1d51a229-612b-bf09-93d5-6e43b476e2cf@gmail.com> <20170419223342.0bbe2593@grimm.local.home> Cc: Michael Ellerman , Frank Rowand , Tyrel Datwyler , robh+dt@kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, nfont@linux.vnet.ibm.com, mingo@redhat.com From: Tyrel Datwyler Message-ID: <90e008a7-0660-99b9-edbe-6bf146268ba8@gmail.com> Date: Wed, 19 Apr 2017 22:24:58 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170419223342.0bbe2593@grimm.local.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 35 On 04/19/2017 07:33 PM, Steven Rostedt wrote: > On Wed, 19 Apr 2017 16:27:10 -0700 > Tyrel Datwyler wrote: > >> # echo stacktrace > /sys/kernel/debug/tracing/trace_options >> # cat trace | grep -A6 "/pci@800000020000018" > > Just to let you know that there is now stacktrace event triggers, where > you don't need to stacktrace all events, you can pick and choose. And > even filter the stack trace on specific fields of the event. This is great, and I did figure that out this afternoon. One thing I was still trying to determine though was whether its possible to set these triggers at boot? As far as I could tell I'm still limited to "trace_options=stacktrace" as a kernel boot parameter to get the stack for event tracepoints. -Tyrel > > # cd /sys/kernel/debug/tracing > # echo "stacktrace if common_pid == $$ && reason == 3" \ > > events/tlb/tlb_flush/trigger > > # cat trace > bash-1103 [003] ...1 1290.100133: tlb_flush: pages:-1 reason:local mm shootdown (3) > bash-1103 [003] ...2 1290.100140: > => copy_process.part.39 > => _do_fork > => SyS_clone > => do_syscall_64 > => return_from_SYSCALL_64 > > -- Steve >