Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5476787imm; Tue, 16 Oct 2018 10:50:03 -0700 (PDT) X-Google-Smtp-Source: ACcGV63deSh0KlAijMV5vS7YcqIyEu8QP8xzEA2HbdQoc0poY7qASQDio9ZqrKqQm8LwivCphWbP X-Received: by 2002:a62:be1a:: with SMTP id l26-v6mr23579565pff.204.1539712203037; Tue, 16 Oct 2018 10:50:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539712203; cv=none; d=google.com; s=arc-20160816; b=Dyoz4o9WpBysCLPFiPLIJJLuto8Vv3VKgSqUJruBHUif0OB0q0MVmWx8QRq4GKjyvq LJnxKej5wamKiMKBe3N42GqDsWRmzhC4Wveq8DzMYk5/DEMg90jtN6fgoXCuxDCc4m0n btiAzfYNpmkqIbtIxw3BFKLnfd2tpUCqCtaedCsJ4s+28xoRMaBGX2ZNojPHASfOqPDg 0J8eYULSxcY68lHPlxICnj0DwUzvkjbbBaePUTrGobLMnvigEUxY9KXqSnB0wRueps/z xgqgRHqsfGLYxmHfH7ppYw7HgX2HsGDRweOmSAANIYhswWg1Flp01XDrVC3jbIUsJXov FiKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=Ha0dgufw4WZAVPUDoNwWXhcPF21SYFsMvNx6yD0Tk9I=; b=KkG+MNCLzzzO5xfT7KE5kAanyj3L+UQyQX+5SeEw9jBp3Zv1CN18QUTPxCMDxtcrfX Mdz4wG23sIRA752cBX413RthgVvPA1RFjYdiEVfXld9D7q+/HOWO4JGx2c3BtiOs8R+t 8JvXU6lq8yDPmnSSLuycM8oGHHLV/A+tzjkGVcYvMm19DHM8T9SRcLe37F9hi8Sxv19i CoiMsyTP2rr8IrBnphm4PVa/4JMzh9nb7l+HFACn67FC1iRpEOy3a43A91CaWNUtRREv dwM1eiskDZkMs1QWITGWSGVzyvxN41Zvul+Y1YMkrVEVuZeTNJ8YMAWmunANPeNFbhmF /DlA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4-v6si12838108pgg.503.2018.10.16.10.49.46; Tue, 16 Oct 2018 10:50:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbeJQBjk (ORCPT + 99 others); Tue, 16 Oct 2018 21:39:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:42728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727081AbeJQBjj (ORCPT ); Tue, 16 Oct 2018 21:39:39 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A7E7820645; Tue, 16 Oct 2018 17:48:04 +0000 (UTC) Date: Tue, 16 Oct 2018 13:48:03 -0400 From: Steven Rostedt To: Sai Prakash Ranjan Cc: Stephen Boyd , Bjorn Andersson , Andy Gross , David Brown , Jiri Slaby , "Ivan T. Ivanov" , Kees Cook , "Joel Fernandes (Google)" , Geliang Tang , Greg Kroah-Hartman , Pramod Gurav , linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, Rajendra Nayak , Vivek Gautam , Sibi Sankar Subject: Re: Crash in msm serial on dragonboard with ftrace bootargs Message-ID: <20181016134803.1b9260c1@gandalf.local.home> In-Reply-To: References: <1cae8f10-55f5-20ce-9105-30af6f88bd6e@codeaurora.org> <20181016112928.4b52afb5@gandalf.local.home> <8c2fb318-813d-81f1-1e2f-cdbc68353077@codeaurora.org> <20181016125721.236ada82@gandalf.local.home> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 16 Oct 2018 23:06:24 +0530 Sai Prakash Ranjan wrote: > On 10/16/2018 10:27 PM, Steven Rostedt wrote: > > > > OK, can you add to the command line: > > > > ftrace=function ftrace_filter=*schedule* > > > > to see if it's a specific function that may be causing the issue (but > > hopefully it's not one of the scheduling functions that caused it). > > > > Target boots fine with this. So its not scheduling functions that is > causing it. Also I tried with ftrace_filter=*msm* just to be sure if > tracing driver functions is causing any issue but its NOT. OK, seems that something is being traced that shouldn't be. When this happens after boot up, it's easy to bisect down to the problem function. But since it's at boot up, it will take a lot longer. I would suggest to start by going down the alphabet. ftrace_filter=a* ftrace_filter=b* ftrace_filter=c* [...] And at least find the letter the bad function starts with. Note, it could be more than one function (I've had that a couple of times), and to find that out, you can test with "ftrace_notrace". Say you find that the problem function starts with 'x'. You can do: ftrace_notrace=x* Which will trace all functions except those that start with an 'x', to make sure it still boots. Remember, you still need to have ftrace=function for all of this. Once you find the letter of the function, you can try the next letter, or perhaps come up with another method. I would say look at the functions in /sys/kernel/debug/tracing/available_filter_functions, but they don't list the init function (that can be traced). But you can use /proc/kallsyms instead. -- Steve