Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4087571imm; Mon, 17 Sep 2018 08:02:03 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYXYeFsRjAM2dOqsYyKokkoslWfUVq9zfzpGwL5K26HxDXTbdBcVccvcHa+lryo4wsLRMke X-Received: by 2002:a62:3241:: with SMTP id y62-v6mr26397769pfy.4.1537196523590; Mon, 17 Sep 2018 08:02:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537196523; cv=none; d=google.com; s=arc-20160816; b=Fqi5fDrcwNK38VB0P4Z37LILq7dRqxORRRanKKr+wR+lcLsGIR70OI8zHosna/0avn UCzXbE5z+HM1tr1tJz6MnxwWgwpDhyJRWlqAO8pwlPzUgaC5M7K/Z0hOhYpv17oqmb81 6mbfeEa62LmzJwkFsTuUqnsQQgxOOh1MHk5j/rJ2G2LaQ+xjm17KlY8isxGjTk7qVkKW +nrPQUN0+gTA6GiUv491HtGYiP5KLsleoP7i/HLNRwbsAq3urhiotYpRIND2kxkzF0Hr FbHddHUri2aEuZCuFmv58e71bdUPD3BBDmDlp4yHsT1UytFDzNLR7o3w4DqPqdexaW2W YZ7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature; bh=fP3Uw0tF4eC/l47fFNzyMQvJUZGZZWWeg2w+r20OQVg=; b=qGbGd+cTzGxDLek7+swTy4KD1KyyjkWo7ppCdAOqeQ7AMReWrqH3yjaQVkMjKlCbxx iSD32IqjBTQXUuFwpQhwHBXWEztDsXllhqzU1jXTw2/dxhrSovKCgpFp9tm7K87JlDH8 w+EwcJRx6dNIR5ZLvffdNyH7VX+jtptB3ECQafpm+Ddhm3wlsT4wpQsKMhVjgHXebn23 f1NZpM5p75xyQOq2ZiM1n+KG0Iled3mfLxycKnihsL6wp7TkHQ955Kx3PecX9+21FpCt lyxw3CbTZOgKrZVGMtIBXFmPx0XQSopWlzFLTWLOOIwwdBNrp8eRBWqWavnR9CLkjsYH PgQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=ARDaUBFy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si16321931pfb.52.2018.09.17.08.01.32; Mon, 17 Sep 2018 08:02:03 -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=@chromium.org header.s=google header.b=ARDaUBFy; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729128AbeIQU2g (ORCPT + 99 others); Mon, 17 Sep 2018 16:28:36 -0400 Received: from mail-yw1-f67.google.com ([209.85.161.67]:37724 "EHLO mail-yw1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728701AbeIQU2f (ORCPT ); Mon, 17 Sep 2018 16:28:35 -0400 Received: by mail-yw1-f67.google.com with SMTP id x83-v6so5553146ywd.4 for ; Mon, 17 Sep 2018 08:00:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fP3Uw0tF4eC/l47fFNzyMQvJUZGZZWWeg2w+r20OQVg=; b=ARDaUBFyMIz+jj6WTFmmqW3s0zkNbPCCYxtsFsRCE7lHsFMPG/VBlc4eRSsbryJf5b DHI+UE51XEjvSplEC2swJUYWGu5bql8QTExKWZo8jmj2aj/mHtLIEMNp2a912bJPof4e +JMPa5dWX2fTNwZK1gzOEbFpgXnirdamckoio= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fP3Uw0tF4eC/l47fFNzyMQvJUZGZZWWeg2w+r20OQVg=; b=gxd9j6N3mbzk4jjNKNAVkse/ImsIQJl1pVAOi6xNo3gKQuZZKaRCXP7mkOnwPInZRH pVpdFShIi7rhPTB/kt8Hd2WjzWf+Vdwj1ts8uXBJSB4WTmQiSmBFq/9LZi4l80L2gUzt r761zMw5jrtH6a1tKlAjoW7VHwtC2rDgPhlk1dsFG1yZUMc+tgta9YZbSlqq4nEXLIeC gK5ItXmFRwED2nI42B1emjDZF8lKUl9VO0tb16O2dL5rv6C70A363UCH+A6iRakSxkxI YxSqVJGBkurXJLlnTnyONfNwChZqANzHOqo4ZrUB8ctMzaP6oraRPApRU9c74N1gXFhV lbDw== X-Gm-Message-State: APzg51CCdZ6UmUj7Ey7TrIKV2Xm9ffueaBWYCnZPW2WcsqoDcJgcP5nY OA0n6hR3LuPEkvwWHGpoyZ+C937ozGI= X-Received: by 2002:a81:e801:: with SMTP id a1-v6mr10255550ywm.170.1537196451594; Mon, 17 Sep 2018 08:00:51 -0700 (PDT) Received: from mail-yb1-f176.google.com (mail-yb1-f176.google.com. [209.85.219.176]) by smtp.gmail.com with ESMTPSA id r84-v6sm9163890ywe.10.2018.09.17.08.00.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Sep 2018 08:00:51 -0700 (PDT) Received: by mail-yb1-f176.google.com with SMTP id y20-v6so7831805ybi.13 for ; Mon, 17 Sep 2018 08:00:51 -0700 (PDT) X-Received: by 2002:a25:5c87:: with SMTP id q129-v6mr10882611ybb.403.1537196090449; Mon, 17 Sep 2018 07:54:50 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a25:5f04:0:0:0:0:0 with HTTP; Mon, 17 Sep 2018 07:54:49 -0700 (PDT) In-Reply-To: References: <141901b8-0a9a-2e7a-f7a4-cdefd157f4c6@codeaurora.org> From: Kees Cook Date: Mon, 17 Sep 2018 07:54:49 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/6] pstore: Add event tracing support To: Joel Fernandes Cc: Sai Prakash Ranjan , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. -Kees -- Kees Cook Pixel Security