Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1531612imm; Wed, 8 Aug 2018 19:59:48 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwTcfYJcw5zI1llYtyS6XQBFbZ7QXPh+r6SSgEzciAUUtc4u0PRKmLol/541BWZYqG5Zcaw X-Received: by 2002:a17:902:760b:: with SMTP id k11-v6mr301493pll.91.1533783587993; Wed, 08 Aug 2018 19:59:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533783587; cv=none; d=google.com; s=arc-20160816; b=Fq5zurlGh9MKIIL2/sxBTBnII8QU9iNMKxJdB9KA8SUGR9HkD6aFUG5CkNf4BakzfP jrwbI/1HTnWtw7t6auKo6ndpYu+8rONZqLV5uu6igS5IshUmN2sDHic/pzR1H/wFKwiw ybWftpXSciSPGoNpTGd0A1KVCo6YsXAcBPEL2cy2LEcD7UQU57r+NFNv26W40XXToB31 Ei42MX26Msx8GWI6AJzHfXamyGvzjcIvL+lXNSfnTs53nF2P4V79nPwk/ztAVs7vQ3Ps lFbvKM4TaeIySzkYmHBICA0EuIct2WJGYDjZZHzeRaTAExYJcIFyNhQ16feA3NR3fy3e E6rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date :arc-authentication-results; bh=tHzzsKgEULSS1Uctm1oTxuyg/fkSUoQPIp9yG/t40UQ=; b=qqvIIAWe8DhLmM2+KUj+8CJDD8v02yXvahlo453qIUZB0Eq7d48Zrxj655Fe7HeoDx gz4rtHqPREke0zi5NcTCZ7WvMnIvmeoPD8qa9QaZuSpkVk4eLPq0xIFCXyuNksRtwArf Jq31tookYVOqvzbIvs/hJKcT1knxuFn9asHKeHafYEySEwWvzUhDrsp848LPszBdKlnZ dqnlZGF9Ym8KPJ424C1kth22gc+Q18ZelCE1AU7Sad9m6j5vLQV5gwUKSkOb/+jyzFLt EhFRPXdYSGhCHmhG4wE/tZZGLoFGDXJrtGmd/hugHcJxinF0wrerQajw7LvBJ1zEL93z bH/g== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b205-v6si6227095pfb.358.2018.08.08.19.59.33; Wed, 08 Aug 2018 19:59:47 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727701AbeHIFUp (ORCPT + 99 others); Thu, 9 Aug 2018 01:20:45 -0400 Received: from mga05.intel.com ([192.55.52.43]:47955 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725779AbeHIFUp (ORCPT ); Thu, 9 Aug 2018 01:20:45 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 19:58:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,213,1531810800"; d="scan'208";a="63707131" Received: from sofia.sh.intel.com (HELO sofia) ([10.239.147.112]) by orsmga008.jf.intel.com with ESMTP; 08 Aug 2018 19:57:54 -0700 Date: Thu, 9 Aug 2018 10:57:03 +0800 From: "Liu, Changcheng" To: broonie@opensource.wolfsonmicro.com, rostedt@goodmis.org, mingo@redhat.com Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, changcheng.liu@intel.com Subject: [PATCH v2 2/2] ASoC: trace: track dapm type in snd_soc_dapm_widget Message-ID: <20180809025703.GF161967@sofia> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Track snd_soc_dapm_widget:id which is used as dapm sequence index in dapm_down_seq/dapm_up_seq. It's useful for checking dapm seq after tracking it. Signed-off-by: Liu Changcheng diff --git a/include/trace/events/asoc.h b/include/trace/events/asoc.h index bf17edc..7c4e8de 100644 --- a/include/trace/events/asoc.h +++ b/include/trace/events/asoc.h @@ -92,16 +92,18 @@ DECLARE_EVENT_CLASS(snd_soc_dapm_widget, TP_STRUCT__entry( __string( name, w->name ) + __field( int, id ) __field( int, val ) ), TP_fast_assign( __assign_str(name, w->name); + __entry->id = (int)w->id; __entry->val = val; ), - TP_printk("widget=%s val=%d", __get_str(name), - __entry->val) + TP_printk("widget=%s dapm_id=%d val=%d", __get_str(name), + __entry->id, __entry->val) ); DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power, -- 2.7.4