Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp736324pxk; Thu, 3 Sep 2020 11:14:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2ieJkKZd+x0riBMZGJW8ez0ctVLat/nGYmVjoWMzWLMVeQW1aWLFOGSxl65ACI4iKOJxv X-Received: by 2002:a05:6402:326:: with SMTP id q6mr4492481edw.216.1599156863092; Thu, 03 Sep 2020 11:14:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599156863; cv=none; d=google.com; s=arc-20160816; b=EWduwxMcgb/3jVQHpXcxKx9HwouRn+Lc7BiNv2u/XAwm6SQ95SGKp0TZQb5VLKbxgG 2vwrq0cJNKvv0d8aC5A86sVsoWDJlFKAsx1c22NdMKbceq3LLr7cEJESoiMLKl5dRqQf 3bYwPnM5UhR5NAjDIsKg/SUf0cziEpDh+H7oueCgcxWvrsN5P3+68GgR+M9guf3y7OJ4 d1XgdnRTT2EQZE/HQoQZ/RibRKwbAOhXAuT7Z3XNaYu9pfriRyHUTs5BuYKqmA83I1Pr pA189q7sOe9YZ9j/jyR2N4Bgcpkg8mS6iUXqrRsa9M7cCKTZXY0APOMecZBWbsDQ4zjI xXPw== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=C205CcD2VMokdGZjSxLWCsMnO75Vt3J45rWeFtKx3hI=; b=x7SCchJPRnYyw9c3ih6QDA/UDMPUrH7G6cRZVudMuixoT1tU416oRyNBm/cOoNoM76 BMu070DZWqkwm1mYY6XYwBD1+yQF2nlxPF1x+ir1+HPrY1tzy5l6y1i0Nm10WK591JG5 weufLJ0rAGoqx4whMXW1E5DFnmEqPB8UmxzEJtqDmnp0giI3b3RM3SFc1XO/8+psSH/S z5hDH109E/yuoy1vQPHoqrQM93i8lwKBicUfQr6mgsjh/hQ3pSJpNNDMXkSEzFpx6Dwi w4CBkHaixfyvNFkP3g0w3lzmUYX4lwmx6zY5G9E4cwNJ1M9dYp9mN6lS8uv8Hi5XW3Ge 7i5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PQaovMUz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jp7si2243864ejb.742.2020.09.03.11.13.58; Thu, 03 Sep 2020 11:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PQaovMUz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728989AbgICSJ6 (ORCPT + 99 others); Thu, 3 Sep 2020 14:09:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:38232 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726025AbgICSJ5 (ORCPT ); Thu, 3 Sep 2020 14:09:57 -0400 Received: from mail-oi1-f172.google.com (mail-oi1-f172.google.com [209.85.167.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4AD8620897 for ; Thu, 3 Sep 2020 18:09:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599156596; bh=C205CcD2VMokdGZjSxLWCsMnO75Vt3J45rWeFtKx3hI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=PQaovMUzZbWYge6mtMiQjs2m35YJx+Sg2GZEtzwTsJOgacaJ2siFqDqlc/HIojZcQ vnfieCoz5B/S9Nl7TH7HZfUMQJ4tlpLWo5tWf7QaHQHWRbPYJafyaDVb/L2hxLcjxy 7mrx9QjEmenoJzBYbNMF+f3kf2L3V2sjDatZYbM8= Received: by mail-oi1-f172.google.com with SMTP id 3so4062255oih.0 for ; Thu, 03 Sep 2020 11:09:56 -0700 (PDT) X-Gm-Message-State: AOAM532sFldFuBzhk7mVzW3r1e8PncR/1AThWtF8M7GBqg72m22NXTCl wlcVus9nW5sXR0dw+c58G1JdY/7oTRakmvlChA== X-Received: by 2002:aca:1711:: with SMTP id j17mr2901843oii.152.1599156595613; Thu, 03 Sep 2020 11:09:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Rob Herring Date: Thu, 3 Sep 2020 12:09:44 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/7] Trace events to pstore To: Joel Fernandes Cc: Nachammai Karuppiah , Steven Rostedt , Ingo Molnar , Frank Rowand , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , LKML , Sai Prakash Ranjan , Brian Norris Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 2, 2020 at 3:47 PM Joel Fernandes wrot= e: > > On Wed, Sep 2, 2020 at 4:01 PM Nachammai Karuppiah > wrote: > > > > Hi, > > > > This patch series adds support to store trace events in pstore. > > > > Storing trace entries in persistent RAM would help in understanding wha= t > > happened just before the system went down. The trace events that led to= the > > crash can be retrieved from the pstore after a warm reboot. This will h= elp > > debug what happened before machine=E2=80=99s last breath. This has to b= e done in a > > scalable way so that tracing a live system does not impact the performa= nce > > of the system. > > Just to add, Nachammai was my intern in the recent outreachy program > and we designed together a way for trace events to be written to > pstore backed memory directory instead of regular memory. The basic > idea is to allocate frace's ring buffer on pstore memory and have it > right there. Then recover it on reboot. Nachammai wrote the code with > some guidance :) . I talked to Steve as well in the past about the > basic of idea of this. Steve is on vacation this week though. ramoops is already the RAM backend for pstore and ramoops already has an ftrace region defined. What am I missing? From a DT standpoint, we already have a reserved persistent RAM binding too. There's already too much kernel specifics on how it is used, we don't need more of that in DT. We're not going to add another separate region (actually, you can have as many regions defined as you want. They will just all be 'ramoops' compatible). Rob