Received: by 2002:ac0:aa62:0:0:0:0:0 with SMTP id w31-v6csp393290ima; Sat, 20 Oct 2018 09:28:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV61XVV1dd7AwHF7/ePusq894/BNSOIu+aKxJDcq/QBj5w3X248JPKY44BKdrSm8cTDy7kKfi X-Received: by 2002:a63:618f:: with SMTP id v137-v6mr14733349pgb.242.1540052932576; Sat, 20 Oct 2018 09:28:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540052932; cv=none; d=google.com; s=arc-20160816; b=fJBqVIOf16OnXyu8CtCJ7vFJohlk6psoguBx3XS8oAGtAdPzY390AaPEMTHRzKjnHR 3W2lwEkwDsJ3uB35sLoxq/y10Bf4/Yn7qc+Wpin8qqMaBppmXlmM/q6/91RevUwkWCC1 BsNVcM/G9lkhoiO49HenMXBxMmoBG1Gw+AIzUQRacsvDJXUoQFqTtfsqwuRmWbsYfztX C7Wda3u/bRYLNkjIp48GSFrghkyNUPkZTTewpfZKoOee4nvdWPg8ClIaeoND3Za+HIhe gQAjOcCsmpaJ5308KR0lYPW9ieJitP8JM8YYV7QK+yVCUWkd4V+kiyq6k6fQ8Dtvp8tn B0mQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=g8F3M6b4IChNzSESlZQJagl85VYvRdNHyowGbl1Xuu4=; b=Xm2poGk/DzwbHo454lfjq95lfdN9U9yh932GAfqZlfIvVMeiqpSjfrGZqGL6m2f6TK 55wNPXx1nDCkdvcpU/a/z0wbJx7jytoT39bt/rK3YLV/FtVe7itTI7dFpMixtaVShCzG FvGsNAmXWtUJOlGqNhyt9z/M9mM3we8qtW06qTzcUOVLVGZFlBz+bF+X1q/VG+aw4Tde q3vdGk7uCAaPfmDpOd6FwhjVl5lHSMKIMAJX/l+jzSVIgoswbMgeCraTcGPw1lKBpiaS Dm3HpTuATMyw6pZMrTonjc+D0jXrwEv09jd8mQHknsvkI671UcvFMdwvoVEtgSzzrSzP amcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@joelfernandes.org header.s=google header.b="Bh/kc1mx"; 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 d187-v6si29544495pfa.20.2018.10.20.09.28.37; Sat, 20 Oct 2018 09:28:52 -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=@joelfernandes.org header.s=google header.b="Bh/kc1mx"; 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 S1727655AbeJUAiX (ORCPT + 99 others); Sat, 20 Oct 2018 20:38:23 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:34341 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727641AbeJUAiW (ORCPT ); Sat, 20 Oct 2018 20:38:22 -0400 Received: by mail-pl1-f193.google.com with SMTP id f18-v6so17205225plr.1 for ; Sat, 20 Oct 2018 09:27:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelfernandes.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=g8F3M6b4IChNzSESlZQJagl85VYvRdNHyowGbl1Xuu4=; b=Bh/kc1mxZw8WFca127OX8MJO5lSN+ZXqTKFmhqS/CXGJ1Fz23iaYhwARoJVE2FMDo4 XU3ukuEB/3G5/ljk4xqQtCkobqwJLOKGyvL3LDPZ7x8f5fL6VwG1sPg7XxizcX2NHYpo R5g2gWcLXWicEFwVf5yY+dAmJfZtGzI3IMDLM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=g8F3M6b4IChNzSESlZQJagl85VYvRdNHyowGbl1Xuu4=; b=ZGJrk4ndDh49hn6OBred5bDXR1tfPMja9a4+8dmrZSnhZu0KzMUX+LqDIa4BzEMr9T QApk7a6sp/2kdPZYnbThA+TnsYPK7K/kGUP+/efN7c7jTLmNWVNHC5rvHrUO80B4rMyc bYd+50A4PEds7boLEUX6x73sh3ZY9j4L5MhQA0lTA4ji9i7hTKHqYDc6NOplvEn6e+hi huaQ9lk9X9kELJC6lvmxZBVfI9dP+PlGHobQ4yqz3W5/VgmtS8vmTRF26JQOVufOn69I t4yQqQYY4J0dvdyDjg+K6il4ahZ6dhM+X73qg+VAxaZNwp3opdI9fjxhR9+VEWsazxLr NY+w== X-Gm-Message-State: ABuFfoipVM/HOSK0j7APNATn5l9sSlXWh4Vqy/WmvcwYEOgUEYQonGzN NOGh4Cx0pJcA/w1Pde6nO+bjfQ== X-Received: by 2002:a17:902:6b81:: with SMTP id p1-v6mr38272117plk.162.1540052842056; Sat, 20 Oct 2018 09:27:22 -0700 (PDT) Received: from localhost ([2620:0:1000:1601:3aef:314f:b9ea:889f]) by smtp.gmail.com with ESMTPSA id 74-v6sm42242444pfx.182.2018.10.20.09.27.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 20 Oct 2018 09:27:20 -0700 (PDT) Date: Sat, 20 Oct 2018 09:27:19 -0700 From: Joel Fernandes To: Sai Prakash Ranjan Cc: Steven Rostedt , Ingo Molnar , Laura Abbott , Kees Cook , 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@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Greg Kroah-Hartman , Ingo Molnar , Tom Zanussi , Prasad Sodagudi , tsoni@codeaurora.org, Bryan Huntsman , Tingwei Zhang , tkjos@google.com Subject: Re: [PATCH 0/6] Tracing register accesses with pstore and dynamic debug Message-ID: <20181020162719.GA49955@joelaf.mtv.corp.google.com> References: <20181020052535.GA155509@joelaf.mtv.corp.google.com> <1d3ddbe3-d3ac-aa3e-fc9e-36739ddd0c91@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d3ddbe3-d3ac-aa3e-fc9e-36739ddd0c91@codeaurora.org> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Oct 20, 2018 at 12:02:37PM +0530, Sai Prakash Ranjan wrote: > On 10/20/2018 10:55 AM, Joel Fernandes wrote: > > On Sun, Sep 09, 2018 at 01:57:01AM +0530, Sai Prakash Ranjan wrote: > > > Hi, > > > > > > This patch series adds Event tracing support to pstore and is continuation > > > to the RFC patch introduced to add a new tracing facility for register > > > accesses called Register Trace Buffer(RTB). Since we decided to not introduce > > > a separate framework to trace register accesses and use existing framework > > > like tracepoints, I have moved from RFC. Details of the RFC in link below: > > > > > > Link: https://lore.kernel.org/lkml/cover.1535119710.git.saiprakash.ranjan@codeaurora.org/ > > > > > > MSR tracing example given by Steven was helpful in using tracepoints for > > > register accesses instead of using separate trace. But just having these > > > IO traces would not help much unless we could have them in some persistent > > > ram buffer for debugging unclocked access or some kind of bus hang or an > > > unexpected reset caused by some buggy driver which happens a lot during > > > initial development stages. By analyzing the last few entries of this buffer, > > > we could identify the register access which is causing the issue. > > > > Hi Sai, > > > > I wanted to see if I could make some time to get your patches working. We are > > hitting usecases that need something like this as well. Basically devices > > hanging and then the ramdump does not tell us much, so in this case pstore > > events can be really helpful. This usecase came up last year as well. > > > > Anyway while I was going through your patches, I cleaned up some pstore code > > as well and I have 3 more patches on top of yours for this clean up. I prefer > > we submit the patches together and sync our work together so that there is > > least conflict. > > > > Here's my latest tree: > > https://github.com/joelagnel/linux-kernel/commits/pstore-events > > (note that I have only build tested the patches since I just wrote them and > > its quite late in the night here ;-)) > > > > Hi Joel, > > Thanks for looking into this. Sure, I will be happy to sync up with you on Thanks. And added a fourth patch in the tree too. > this. I can test your additional patches on top of my pstore patches. BTW, > I'm still stuck at copying binary record into pstore and then extract it > during read time. Seems like I'm missing something. Sure, push your latest somewhere and let me know. I'll try to get you unstuck. thanks, - Joel