Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4235278imm; Mon, 17 Sep 2018 10:19:15 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaBmzwhNIBwo74fp0NLOVvxibdpON0aoiefxocej91Btp5DzQ32p2ykuexcZCN1juIUsuoE X-Received: by 2002:a62:34c4:: with SMTP id b187-v6mr26803519pfa.15.1537204755438; Mon, 17 Sep 2018 10:19:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537204755; cv=none; d=google.com; s=arc-20160816; b=AdqVeGUD0hCifGHXGKV8x/+qPY6YUVJY9ObSz5K8785o9k4YLsUe0cxigC91WOG30C hBS3weIgIGn9yIGxeXueCc09tgcnycVs5DtJTriH9Sdx4qkXR6A7HLWW6WMU9rdcYlZZ hau/8gxwQhVq55NSMsTkwJEupylBam2wwSeDN2ZnDLH0czN/gSlXvCfDO//H3Khf8jZH MXWILctr4+I6URwLwrjV7VA8JvPghJb4jx+WwDuB4g8Pf8Fi3RzY8pMNBVwCF9ACi2RM XNQcApqbuXo5hqKu9Nu87QnH6PwGqJzYCtV8r0QwbdXiPvOMJZAmaGDduzMpiTKqoOhs 0nCQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=Hu2U55eoUAiw1VqsrQ6fxWOw6lOCPwJUY5Uk392oKXQ=; b=eSBOZc/etEHlZaJ60W6IZgueVnZyRFHvrw22qtZX8RkralzqLW4xZlbEWqqj2d84jC RVyCKFi0Li79XIUdqwCe69UPcmSmzVKEtFA1Y/WgdWYgm34BMQr/zdTrpEefELH0ZOUF f5zZUkFneqmxAhMV/ZEd9lEbKGKkVsJSQJwI7kKrRq4f5BNfUFUcRB/KQCkood1rQ7fo QxPlwBJ6l6rTv/+hLm432B+KZWCfjqkT/B46jH7uXTTtEKf+TYoP5uDnj4mSkW2ucVv9 xrhriMhe4LctfhM8X6f8qKDSwG41rqfpp3u4kQb747QzFnpxWxHfvjtr6Jyuz9M7jQ9z +DPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=JxytkBCx; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ssc2NbW4; 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 v7-v6si15550793plp.263.2018.09.17.10.18.56; Mon, 17 Sep 2018 10:19:15 -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; dkim=pass header.i=@codeaurora.org header.s=default header.b=JxytkBCx; dkim=pass header.i=@codeaurora.org header.s=default header.b=Ssc2NbW4; 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 S1728292AbeIQWpm (ORCPT + 99 others); Mon, 17 Sep 2018 18:45:42 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:51116 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbeIQWpl (ORCPT ); Mon, 17 Sep 2018 18:45:41 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 8C67E60C60; Mon, 17 Sep 2018 17:17:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537204643; bh=PjDTBL7LKg8ktgKcI0HYuZpXiLodA2xKCkxLs1OM1TY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JxytkBCxgwNBC7SDw/wLL50Z6UdQeG5Zi6qcTYkGPYLNuzN+iMpE3P0qKDxquAwqo W0jIuYVSqQMtD1dT1zrzoXrnVutFOPYgZQmV/gSN1V8M1rJOHod2KrhMwmX5N3mHo9 ej4X4gWwGS9+0YzSHkJdjQGf40vEGTucfW2f84ys= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.43.47] (unknown [27.59.117.2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: saiprakash.ranjan@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id A383E6031A; Mon, 17 Sep 2018 17:17:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1537204641; bh=PjDTBL7LKg8ktgKcI0HYuZpXiLodA2xKCkxLs1OM1TY=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=Ssc2NbW4B2r4UF+GcDPEuNyN15c8g3OIXmzfj37EpnqRAP16VICGy5F8Yw4q3juxt +vy+MJ8PKe7fatW1+NUEjbT7pOE2Q+vMz3LSXJOdQwcikpJGuduP4UyiYqhp2scq06 mAg98pnd6bdXsXTRCk1ZuYLDUDvA2nrsRZQXs9g8= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org A383E6031A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=saiprakash.ranjan@codeaurora.org Subject: Re: [PATCH 2/6] pstore: Add event tracing support To: Kees Cook , Joel Fernandes Cc: Steven Rostedt , Ingo Molnar , Laura Abbott , Anton Vorontsov , Rob Herring , devicetree@vger.kernel.org, Colin Cross , Jason Baron , Tony Luck , Arnd Bergmann , Catalin Marinas , Will Deacon , Masami Hiramatsu , Joe Perches , Jim Cromie , Rajendra Nayak , Vivek Gautam , Sibi Sankar , linux-arm-kernel , LKML , linux-arm-msm@vger.kernel.org, Greg Kroah-Hartman , Ingo Molnar , Tom Zanussi , Prasad Sodagudi , tsoni@codeaurora.org, Bryan Huntsman , Tingwei Zhang , Rob Herring References: <141901b8-0a9a-2e7a-f7a4-cdefd157f4c6@codeaurora.org> From: Sai Prakash Ranjan Message-ID: Date: Mon, 17 Sep 2018 22:47:05 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/17/2018 8:24 PM, Kees Cook wrote: > On Sun, Sep 16, 2018 at 6:55 AM, Joel Fernandes wrote: >> On Sun, Sep 16, 2018, 12:08 AM Sai Prakash Ranjan >> wrote: >>> >>> On 9/9/2018 1:57 AM, Sai Prakash Ranjan wrote: >>>> Currently pstore has function trace support which can be >>>> used to get the function call chain with limited data. >>>> Event tracing has extra data which is useful to debug wide >>>> variety of issues and is heavily used across the kernel. >>>> >>>> Adding this support to pstore can be very helpful to debug >>>> different subsystems since almost all of them have trace >>>> events already available. And also it is useful to debug >>>> unknown resets or crashes since we can get lot more info >>>> from event tracing by viewing the last occurred events. >>> >>> Anyone here? >> >> Sorry for the top post. I've been wanting to do this as well for some time. >> It's quite useful. I am out of office this week and away from work machine. >> I will take a look at your patches next week once I'm back at work. Thanks. > > If Steven agrees this shouldn't live in ftrace directly and Joel > reviews these patches, I think it should be fine. I'm travelling, but > I can review it hopefully later this week. > Thank you Kees. - Sai