Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp570742pxa; Fri, 31 Jul 2020 22:11:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8z/vXQEHZ5CH8T/dnZBNP7X8XFeejc9DIgWhoqhX9MbJT4kxhoRtqoAEgjmurP/7j246x X-Received: by 2002:a17:906:9984:: with SMTP id af4mr7711028ejc.90.1596258663502; Fri, 31 Jul 2020 22:11:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596258663; cv=none; d=google.com; s=arc-20160816; b=oE729/sVL6w8FzXkA7LVHd/55CeZ9rxILU8O9csQlQj8miEisvB7IVj0/OZCS4PcJy KJenrck0G04/bCDrhdQDW7j3Io8udRzmJ6nb7xuBB6bOF+Ow/QfeZ2nh/xSh64P7LnAv /cpRfok2yZ/SiKa9OaL6kpwIUkyK9G7KTsta3GQJxodO/2ldhCuRlGLEj4OE9jkYFTXC pJT1xxDlPb9TzGc/ovGLts3Q1sns8qjvHBVrrKw2C7QiRcwJRGUALcNG6qK69qmjXLDV ME2XVB1hCIet/NlXmdbL9aAA8ADyYXphHnjed9tJO26hiTwOOGwfl4Z6vqKgRo6a6NmT zynQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dmarc-filter:dkim-signature; bh=+wYIer0V10xv0NSE/QIM8w7LTq7I6dxcydeczBC4CNA=; b=nSFUMlMU1qD7tQvexo1benygUxSO7Ryqa9eMjlnmc3fmSKouMensqn5PTsqri3OZgf MMl5PbbIiPnEmYjYzKOvPFGkzXZyn9yIjk+1+PbU73wreGkj9YhcCDAdVjNmwoBtR6A/ qDzG/kYRJNHHoX/s7yVGYTl7lB6uANbiTVy7jHL5E21H3Vm88jCMVF4R17VhOaidISf2 8q0q7Pv5pAgfjIUFCTMZXtDe9gWGU96d33oAwy409X/tDoCaRLY0lB/9GOILFOHx4Fkv jApIDhuS+t5vyKJWTwdngOI+cNkBZIRVNGiSTwbw2wgoYcFlOPrsfmXCJKXC46xaJ3CU iYxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Nk0lPJLa; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i2si3732045edk.282.2020.07.31.22.10.41; Fri, 31 Jul 2020 22:11:03 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Nk0lPJLa; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbgHAFKO (ORCPT + 99 others); Sat, 1 Aug 2020 01:10:14 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:34661 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725876AbgHAFKN (ORCPT ); Sat, 1 Aug 2020 01:10:13 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1596258613; h=Content-Transfer-Encoding: Content-Type: MIME-Version: Message-ID: Date: Subject: In-Reply-To: References: Cc: To: From: Sender; bh=+wYIer0V10xv0NSE/QIM8w7LTq7I6dxcydeczBC4CNA=; b=Nk0lPJLa5sxXvAvmtSdqWypyVQHCV7CJfumg8qx/BIF7ujxRx+TD52KJqwfGiySO+EdtBhCu mYLpHtm82bQUIew8Jv9CJ4qBJdYptfDcQNmBEQ2Xbi/9N5rtyjqDnGTmEoyYweBTa3Qd1tim rw+TtiQUSoL66/PzBYWHQyoWy2w= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n05.prod.us-east-1.postgun.com with SMTP id 5f24f934798b102968c07984 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Sat, 01 Aug 2020 05:10:12 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 533EAC433CB; Sat, 1 Aug 2020 05:10:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from Pillair (unknown [49.205.240.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: pillair) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8B40FC433C9; Sat, 1 Aug 2020 05:10:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8B40FC433C9 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=pillair@codeaurora.org From: "Rakesh Pillai" To: "'Florian Fainelli'" , Cc: , , , , , References: <1596220042-2778-1-git-send-email-pillair@codeaurora.org> In-Reply-To: Subject: RE: [PATCH v2 0/3] Date: Sat, 1 Aug 2020 10:40:03 +0530 Message-ID: <000701d667c2$0782fe70$1688fb50$@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQG33jQ4R3ZVYFu9l+A0slgX59AuwQM6QXA+qUX1HuA= Content-Language: en-us Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Florian Fainelli > Sent: Saturday, August 1, 2020 12:17 AM > To: Rakesh Pillai ; ath10k@lists.infradead.org > Cc: linux-wireless@vger.kernel.org; linux-kernel@vger.kernel.org; > kvalo@codeaurora.org; davem@davemloft.net; kuba@kernel.org; > netdev@vger.kernel.org > Subject: Re: [PATCH v2 0/3] >=20 > On 7/31/20 11:27 AM, Rakesh Pillai wrote: > > The history recording will be compiled only if > > ATH10K_DEBUG is enabled, and also enabled via > > the module parameter. Once the history recording > > is enabled via module parameter, it can be enabled > > or disabled runtime via debugfs. >=20 > Why not use trace prints and retrieving them via the function tracer? > This seems very ad-hoc. Tracing needs to be enabled to capture the events. But these events can be turned on in some kind of a debug build and = capture the history to help us debug in case there is a crash. It wont even allocate memory if not enabled via module parameter. >=20 > > > > --- > > Changes from v1: > > - Add module param and debugfs to enable/disable history recording. > > > > Rakesh Pillai (3): > > ath10k: Add history for tracking certain events > > ath10k: Add module param to enable history > > ath10k: Add debugfs support to enable event history > > > > drivers/net/wireless/ath/ath10k/ce.c | 1 + > > drivers/net/wireless/ath/ath10k/core.c | 3 + > > drivers/net/wireless/ath/ath10k/core.h | 82 ++++++++++++ > > drivers/net/wireless/ath/ath10k/debug.c | 207 > ++++++++++++++++++++++++++++++ > > drivers/net/wireless/ath/ath10k/debug.h | 75 +++++++++++ > > drivers/net/wireless/ath/ath10k/snoc.c | 15 ++- > > drivers/net/wireless/ath/ath10k/wmi-tlv.c | 1 + > > drivers/net/wireless/ath/ath10k/wmi.c | 10 ++ > > 8 files changed, 393 insertions(+), 1 deletion(-) > > >=20 >=20 > -- > Florian