Received: by 2002:ac0:cd04:0:0:0:0:0 with SMTP id w4csp124491imn; Fri, 1 Jul 2022 11:16:51 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uz06JnpkG5mV5HUuPnbKPB42KoEjxtdnSuCJdnGTQhXov576VuBJGLc2AWJuFKSrZXN4/+ X-Received: by 2002:a17:90b:278e:b0:1ee:f086:9c9d with SMTP id pw14-20020a17090b278e00b001eef0869c9dmr19383601pjb.182.1656699411216; Fri, 01 Jul 2022 11:16:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656699411; cv=none; d=google.com; s=arc-20160816; b=VAKp/t28rij92kZQ5F6g+6h/rpx//dG2u958mbP74WVvIkLghBnmtSEESFCSriJFsN /mJCkqt6E4ce0SShY8c7ZQHM7SzR5V0rRUtyXEHK7K/bSY4/EEjQQ66ntJjCf9wdzawx obfgRUTIWqrqTJVOZhWpBn+yYWSziXdYJozL29hqKbqhFqoqLu0Y5E3IQzDXXMH2boz3 gCd90bE6I8ED/AB37wSqsUXVdbMLmmGgL+3zHP3bWN66mxok1l3RMYQ1WsJAIdgPMNR1 qAB+Cu+glHmDX4TwzpehZj4BeBSHziEiSdgAt51m3vv9oIwiRRse552DaMmCdV7OUR8F yW1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=y7zwpJb3LfY0EnauyTfBYhce++rJvrzabSyA/DiSB4g=; b=UXb08tA2gwDNDvkoummLAa2OPzAh4rgvwgVpNaBfUBA5/QUM8pTq3zA4xlQb7RJCB2 RoGxH7dkWW+TyzWo2Pg6Xz/TW7J1kAWu1YjGEIpdldNB5yCI/1b+tLE3t3LyRz0CdAjx kYI5Yx2YtWHMGKKLcBEZ1Eo5J4sYWwzCBP5x8ZyEbwldjz6oAGW4V/tECGCwaGIRXUU/ J58gMbk3mlBvWphecLKFumNfbXX4dEGy1Zoe8loWRBB0gZKH8CkL1jHiV0df5ax7M/jO Q2K3fVfu9vFVpwguq49QHziXiZOiHzG3fWNXwrnQHg7Z7jr5w86UgNmck11hAsYUsJ/9 J3Tg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g2-20020a655942000000b0040ca239942csi32860475pgu.432.2022.07.01.11.16.39; Fri, 01 Jul 2022 11:16:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230465AbiGAR5c (ORCPT + 99 others); Fri, 1 Jul 2022 13:57:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230214AbiGAR5b (ORCPT ); Fri, 1 Jul 2022 13:57:31 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9FB3F897 for ; Fri, 1 Jul 2022 10:57:29 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 1859BB83108 for ; Fri, 1 Jul 2022 17:57:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6AB96C3411E; Fri, 1 Jul 2022 17:57:25 +0000 (UTC) Date: Fri, 1 Jul 2022 13:57:23 -0400 From: Steven Rostedt To: Joel Fernandes Cc: Rob Herring , Nachammai Karuppiah , Ingo Molnar , Frank Rowand , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , LKML , Sai Prakash Ranjan , Brian Norris Subject: Re: [RFC PATCH 0/7] Trace events to pstore Message-ID: <20220701135723.12b4f179@gandalf.local.home> In-Reply-To: References: <20220630154847.134d3d67@gandalf.local.home> <20220701124628.36009f4a@gandalf.local.home> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 1 Jul 2022 12:53:17 -0400 Joel Fernandes wrote: > Interesting. In the case of pstore, you know exactly where the pages > are for ftrace. How would you know that for the buddy system where > pages are in the wild wild west? I guess you would need to track where > ftrace pages where allocated, within the crash dump/report. kexec/kdump already does that (of course it requires the DWARF symbols of the kernel to be accessible by the kdump kernel). But if we write the raw ftrace data into persistent memory that can survive a reboot, then we can extract that raw data and convert it back to text offline. Thus, I would like to remove the converting to text and compressing into pstore, and possibly look at a solution that simply writes the raw data into pstore. -- Steve