Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 987D1C2D0DB for ; Tue, 28 Jan 2020 19:01:01 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 269D92467E for ; Tue, 28 Jan 2020 19:01:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Em0Z1LIW" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 269D92467E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=intel.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 79349165F; Tue, 28 Jan 2020 20:00:09 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 79349165F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1580238059; bh=GN8gQd6Tmtfbc47Ox29bIvpYEqraZ2zHAuGw3V7keBc=; h=To:References:From:Date:In-Reply-To:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Em0Z1LIWeT2ihp8EztGSMflO79HhJcid5qnpUHQfn62IgKZS0vV5NfwE21pq0rQTB gJgcV7Fq2JuaK1sGHqf7adLLmS+SRT7g6pCGtDFCI+JWKvwe6cWRDnT4DAg8fyFuiC sXI7b+DlqToNswHlAfgVgOzc8z/IEzLcga37Ah1o= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id B5217F800FF; Tue, 28 Jan 2020 20:00:03 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A017EF80150; Tue, 28 Jan 2020 20:00:01 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 9B82DF80082 for ; Tue, 28 Jan 2020 19:59:57 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 9B82DF80082 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jan 2020 10:59:47 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.70,374,1574150400"; d="scan'208";a="261537929" Received: from crojewsk-mobl1.ger.corp.intel.com (HELO [10.251.82.5]) ([10.251.82.5]) by fmsmga002.fm.intel.com with ESMTP; 28 Jan 2020 10:59:45 -0800 To: "Sridharan, Ranjani" References: <20200128104356.16570-1-cezary.rojewski@intel.com> <20200128104356.16570-11-cezary.rojewski@intel.com> From: Cezary Rojewski Message-ID: <40e08ff7-921d-3554-d723-149a350a1084@intel.com> Date: Tue, 28 Jan 2020 19:59:43 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-US Cc: Linux-ALSA , Mark Brown , tiwai@suse.com, Pierre-Louis Bossart , Liam Girdwood Subject: Re: [alsa-devel] [PATCH v3 10/11] ASoC: SOF: Provide probe debugfs support X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On 2020-01-28 18:54, Sridharan, Ranjani wrote: > On Tue, Jan 28, 2020 at 2:51 AM Cezary Rojewski > wrote: > >> Define debugfs subdirectory delegated for IPC communication with DSP. >> Input format: uint,uint,(...) which are later translated into DWORDS >> sequence and further into instances of struct of interest given the IPC >> type. >> >> For Extractor probes, following have been enabled: >> - PROBE_POINT_ADD (echo <..> probe_points) >> - PROBE_POINT_REMOVE (echo <..> probe_points_remove) >> - PROBE_POINT_INFO (cat probe_points) >> >> Signed-off-by: Cezary Rojewski >> --- >> >> Changes in v2: >> - renamed debugfs probe functions as requested by Pierre >> >> >> + >> +static int snd_sof_debugfs_probe_item(struct snd_sof_dev *sdev, >> + const char *name, mode_t mode, >> + const struct file_operations *fops) > > Hi Cezary, > > Any particular reason to not use the existing snd_sof_debugfs_buf_item() > and adding a new one that does pretty much the same thing? > > Thanks, > Ranjani Thanks for the review Ranjani! _buf_item() makes use of sof_dfs_fops - while probe items take different handlers - and adds a special case for _IPC_FLOOT_TEST which I have no knowledge of. In consequence, providing _probe_item() seems like a right choice to me. Czarek _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel