Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp4614072ybz; Tue, 28 Apr 2020 14:54:04 -0700 (PDT) X-Google-Smtp-Source: APiQypK/HJRjQu4eM+4FpduH4Nqcote822c4HIS3SxhLaH06SNeGkO8dzncDzQWP2ngSTYoG7r4z X-Received: by 2002:a17:906:2993:: with SMTP id x19mr4475697eje.280.1588110844651; Tue, 28 Apr 2020 14:54:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588110844; cv=none; d=google.com; s=arc-20160816; b=iGUyZMN7UnRPVodP7t3E88X0rGR3oMyXRo8nmudoN5h11gw0tvA7qrV3CZiaz9RHqr QSzg0FtsTCdWc7i+XIWJm4ASn3SS1a7RrE5sIHovm2TOUng9YRtk415g79dEuZ29ACFb FUiprU0m+Ex9FzziVACozaTBvxTbbpsZR6fs/iSekWBSe5FWJ7WMn5bMWg8xv5dBY/YN 4Splhoibi9FA1IwvV9G3rFmVY+WXZ0Kz7FuMO5O8bmEt23fpL9grA0Oy0S+5izXvi7r5 LP97JjMedWrxc3q5TKydwk/F/yzA+EdYHh485ZNmS5c8rJpfLchm3ZLtbDaIezynLwRo sjDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=9osxT0MDRAr90MhYiRbJBK9XB7tK1G0OyiTUDsj+BTw=; b=Bil9xvPtFq7bi6VDBJCPOdVCExOwCaBzylBzKAKK2EX1XBBcatyOw4EzyP3JCG6qzb Vs1KPYCIRxJZBmPH+Eb57B5ATR6fkFM+tdg6BN5uTiSnPjm4D6buN0mpSlSsIkG+6aJk nkZQ1DSgIBMXXgiQCOcrE65+Z4IJj3d32z6C4hZCPTRNBt7ZrGuTARNywAnvga25BU3f /yFB54O+4LQBzEtTH3Q42J/I7Lji/f1MWxCnw7G61xZJnDAe2LfoqYesOMbfGx/pP4uG hfkTHGysgc8ahuVNWuddOw/C6QQFd/4gaz9fQsOkIrHrXpGgu5uUD/r9hfUA3uY+EiM7 q/QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Ltrh8w3m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m12si2559585edq.510.2020.04.28.14.53.41; Tue, 28 Apr 2020 14:54:04 -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=pass header.i=@gmail.com header.s=20161025 header.b=Ltrh8w3m; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726699AbgD1VuS (ORCPT + 99 others); Tue, 28 Apr 2020 17:50:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46792 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726272AbgD1VuR (ORCPT ); Tue, 28 Apr 2020 17:50:17 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 780C9C03C1AE for ; Tue, 28 Apr 2020 14:50:17 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id g12so428020wmh.3 for ; Tue, 28 Apr 2020 14:50:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=9osxT0MDRAr90MhYiRbJBK9XB7tK1G0OyiTUDsj+BTw=; b=Ltrh8w3mofifrPYnhW7F/YpSDUWfqWBGttCogGG7upeFfTyqmg5WP1zPGzJ8LtNgZ0 nIjaMIcdFDHTmrHyvQCZZocyyrue7u2Bnt97Rz4MO9BVESkLDOpuH1FWlDI+qhhvuSdx wU1RS3Jnx/g7ztfzyomuC3XgIUMuwN41/k/McQ3nquREFqmO2bjOxjknwUWpwj8lg1ZB UCWi5tf7CRHzOAoHH9INamrfcHlkBt+mlBqvcLYaJ9io0h/qh2x/JStK85+oErteVtV3 ep5VnrBGSRVyRND3QaGo8dJsNQBIZqOyPrRotv7ef52Cl6HZw3536W07Kzw+8gW84hL5 VFgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=9osxT0MDRAr90MhYiRbJBK9XB7tK1G0OyiTUDsj+BTw=; b=HP9WcxgBoEKwQCNssQkoN++3jz4kUfMoGZKmfn7eII11qIsL3oGHqbkqNhp1QBHQ7r tfbo6gbuS9ttxNLNZ6Dj3Ilblwqn5+xc8PT0TRCZex2yeo1GsTMcBwsL7gOk/lr1jbOn d05AENSnG2p9u1vweLgWDziFm49xYDVOqBYVQZuiJuYn6VkG4HNgiTDIw6YsblHkRTmr SzmH2sxXH1n7vD/A3AJfkAy+jhrTXHxvIS5Hx3CNfm/kgOolG7WccGWJYG9b2P7dfX25 gZhKfgAUBscph64p4zdcbHotca2aPUq6iK5ViSSg+SC7QXynyeUZLeZhHQ/+H+ENXFfM WI/A== X-Gm-Message-State: AGi0PubZfgb3A3Gg+GJVvCAflVSdpnPsVgNvOSyTs91Q8xBYeO8uZKdx 0nxE2RqoG1DsduuT5E3Nck0= X-Received: by 2002:a1c:3dd6:: with SMTP id k205mr6799912wma.138.1588110616170; Tue, 28 Apr 2020 14:50:16 -0700 (PDT) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id t16sm4876236wmi.27.2020.04.28.14.50.15 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Apr 2020 14:50:15 -0700 (PDT) From: Wei Yang To: rostedt@goodmis.org Cc: linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH] tracing: Fix doc mistakes in trace sample Date: Tue, 28 Apr 2020 21:49:59 +0000 Message-Id: <20200428214959.11259-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As the example below shows, DECLARE_EVENT_CLASS() is used instead of DEFINE_EVENT_CLASS(). Signed-off-by: Wei Yang --- samples/trace_events/trace-events-sample.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/trace_events/trace-events-sample.h b/samples/trace_events/trace-events-sample.h index 80b4a70315b6..13a35f7cbe66 100644 --- a/samples/trace_events/trace-events-sample.h +++ b/samples/trace_events/trace-events-sample.h @@ -416,7 +416,7 @@ TRACE_EVENT_FN(foo_bar_with_fn, * Note, TRACE_EVENT() itself is simply defined as: * * #define TRACE_EVENT(name, proto, args, tstruct, assign, printk) \ - * DEFINE_EVENT_CLASS(name, proto, args, tstruct, assign, printk); \ + * DECLARE_EVENT_CLASS(name, proto, args, tstruct, assign, printk); \ * DEFINE_EVENT(name, name, proto, args) * * The DEFINE_EVENT() also can be declared with conditions and reg functions: -- 2.23.0