Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp6984072ybn; Mon, 30 Sep 2019 06:58:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwYWDcDnob8NvTNWydilHsemBvhjdQFGqwrPqjw+wbjJzHj57pwJONHvH4TTdcgXk3UXY9 X-Received: by 2002:a17:906:6445:: with SMTP id l5mr19402973ejn.12.1569851929965; Mon, 30 Sep 2019 06:58:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569851929; cv=none; d=google.com; s=arc-20160816; b=A9l3g8Khn1IP20WGXabdUqK59/M8xGvXh/koOI2jyXcEjGroyQrjIBcGEL+VJF5Vu8 F5iXQWq4tKp5pHM78pyfthnHl6PciBxouUCpR01D3qjpMCoO0My0Jw3I7j6SmD4PRGzR J7GS61Lz3mla8GNfeWrQ3/OpKSVy3ulUctN4WFwubr4sv7mK4sm/ygMJUwuCtZRawcSl XnbPaLlQWGswulBRWHvqDp7HJgQJTzwnjVm6/pJgvyOD1ELvKWKXoTubt84bZAH9pLdS DNyYOjOsGY17jNaDeZM9ARHtEp0op04qvpeXLSix99xPTuWv+hmk+crg00LCHwlRZAjt 7+ew== 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:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=5JBr0GL5U9VyQcHiyj0NuMGIvlCb0zyqoXsM+GWhRCk=; b=hTPxfCWIkbWxHGBv6y35DQUchFpI89URcESQQQJ4hfFwrRy1y+gM29yb8g7kEvOfTI S2DTBVMmvSuCA0ufIU1ZYYmvTo7Pvz+VQ0KzVIKnVMDf3AnIqAPurre/QV/1fzTtQf8U UK5zOzqKqq0Nvn4rs7og/+qYP5BpuznF+F8ndEHa9AEemRgrDpDxX9wQdoPTGOjKhnp9 vWTV6/s65EuSC806NECfPAwXp4KuoiZiEtlZ6i9ahphp1ZmnBHxBYBEQkPWgfN9yWJRz HhaVTUoV7ypofa5RdISvPHSnjr1tCVXpTOIK9aR9Ii4BefeNObumVXxgjf89k3gVdlxA QtfA== ARC-Authentication-Results: i=1; mx.google.com; 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 t37si8132010edd.25.2019.09.30.06.58.25; Mon, 30 Sep 2019 06:58:49 -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; 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 S1731463AbfI3Nx5 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 30 Sep 2019 09:53:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:41680 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730378AbfI3Nx5 (ORCPT ); Mon, 30 Sep 2019 09:53:57 -0400 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 90C6520842; Mon, 30 Sep 2019 13:53:56 +0000 (UTC) Date: Mon, 30 Sep 2019 09:53:54 -0400 From: Steven Rostedt To: Sodagudi Prasad Cc: pmladek@suse.com, sergey.senozhatsky@gmail.com, linux-kernel@vger.kernel.org Subject: Re: Time stamp value in printk records Message-ID: <20190930095354.08fa0d80@gandalf.local.home> In-Reply-To: <7d1aee8505b91c460fee347ed4204b9a@codeaurora.org> References: <7d1aee8505b91c460fee347ed4204b9a@codeaurora.org> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 30 Sep 2019 06:33:42 -0700 Sodagudi Prasad wrote: > Hi All, > > From Qualcomm side, we would like to check with upstream team about > adding Raw time stamp value to printk records. On Qualcomm soc, there > are various DSPs subsystems are there - for example audio, video and > modem DSPs. > Adding raw timer value(along with sched_clock()) in the printk record > helps in the following use cases – > 1) To find out which subsystem crashed first - Whether application > processor crashed first or DSP subsystem? > 2) If there are any system stability issues on the DSP side, what is the > activity on the APPS processor side during that time? > > Initially during the device boot up, printk shed_clock value can be > matched with timer raw value used on the dsp subsystem, but after APPS > processor suspends several times, we don’t have way to correlate the > time stamp value on the DSP and APPS processor. All timers(both apps > processor timer and dsp timers) are derived from globally always on > timer on Qualcomm soc, So keeping global timer raw values in printk > records and dsp logs help to correlate the activity of all the > processors in SoC. > > It would be great if upstream team adds common solution this problem if > all soc vendors would get benefit by adding raw timer value to printk > Hi Prasad, If you or someone you know would like to present patches for exactly what you would like to see, that would go a long way. -- Steve