Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp605901imm; Wed, 8 Aug 2018 02:31:24 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxm1NOSPP7iyF3DqSo/r9+xCsl2If5igJR/rC/onjzhO0hIZCjueI8tvrSnae7EDEZ8cPVv X-Received: by 2002:a62:c4c3:: with SMTP id h64-v6mr2077478pfk.39.1533720684453; Wed, 08 Aug 2018 02:31:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533720684; cv=none; d=google.com; s=arc-20160816; b=c2AwHIRqALnQPg9AkFEj/azQ858F2OUlro5I6ud50mJTFXUNeDIwbqbbrJqLdw9HeG VOxTVfcryz0GaWg31E5VwdGqlFydgnlyrewCLVl/bBBi5wjqZvVOM7kgmgY6tHy46TOg F3tma5uIH+cixiIRyel36EEfXAVgnCen/NeNjGiC9TpD08eNsKVpCUUuZF9tpDHq6bzh UElfi7EpGqVtv4GnKtyfjzKn+ImpUU4Ku3LtIdL3mU39RoonKMPXJml3wEOduHd62XbO kq0mbPuJGLj3Qj4ewwdHhvj2o8hUcNeS6zYKpUq210EQrsxAnHhZ+/FqYEUYjo+mF/UI Jyng== 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=8PRX+vyVwGyZxG+BZe/6NQotApn4sqKAxd2kUuhksPY=; b=ohG0KXq0PfBHqIHGF4862DAl3BN+0Ik+iZlaOVus9mMeWJ6fAPRYDiX6qraJGqUQ8W vEJzxGe3bbOQgQett2NNI2Vap9DzDQxudnFxBCYAk9uQflCOPXHjZ4yda3kpV7yTe9Ok d7hTV01rSYvVAC/hRHU+8m+i5dS6/l6L8YLfjWrV93jwaEdmEQqmHL/2v7ITPOiwvYhI olZ8DCB5XN6HXDjDT8qCuWngNGoF+09J6rIjHISdEKkP3ndUS0T13ZbXjRobMJR+l2iQ 2qt8dMGqsEfJCo3pas9R80ATO9xl0CLw0IGVe4LSSMLjwTS4bIfgiFbwfnT8XqFB4BxK D3kQ== 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 d8-v6si3441101pgn.382.2018.08.08.02.31.09; Wed, 08 Aug 2018 02:31:24 -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 S1727038AbeHHLtK (ORCPT + 99 others); Wed, 8 Aug 2018 07:49:10 -0400 Received: from mga01.intel.com ([192.55.52.88]:45822 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726927AbeHHLtK (ORCPT ); Wed, 8 Aug 2018 07:49:10 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Aug 2018 02:30:19 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,456,1526367600"; d="scan'208";a="61541521" Received: from sofia.sh.intel.com (HELO sofia) ([10.239.147.112]) by fmsmga008.fm.intel.com with ESMTP; 08 Aug 2018 02:30:18 -0700 Date: Wed, 8 Aug 2018 17:29:27 +0800 From: "Liu, Changcheng" To: broonie@opensource.wolfsonmicro.com, Steven Rostedt , Ingo Molnar Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org, changcheng.liu@intel.com Subject: [PATCH] ASoC: trace: track dapm type in snd_soc_dapm_widget Message-ID: <20180808092927.GA144203@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 40c300f..0bc935b 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 = w->id; __entry->val = val; ), - TP_printk("widget=%s val=%d", __get_str(name), - (int)__entry->val) + TP_printk("widget=%s dapm_id=%d val=%d", __get_str(name), + (int)__entry->id, (int)__entry->val) ); DEFINE_EVENT(snd_soc_dapm_widget, snd_soc_dapm_widget_power, -- 2.7.4