From patchwork Thu Jul 29 14:50:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Bristot de Oliveira X-Patchwork-Id: 12408937 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=-17.0 required=3.0 tests=BAYES_00,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT 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 07820C4338F for ; Thu, 29 Jul 2021 15:14:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id DCF7660EE6 for ; Thu, 29 Jul 2021 15:14:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229934AbhG2PO4 (ORCPT ); Thu, 29 Jul 2021 11:14:56 -0400 Received: from gateway34.websitewelcome.com ([192.185.148.140]:38838 "EHLO gateway34.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229864AbhG2POz (ORCPT ); Thu, 29 Jul 2021 11:14:55 -0400 X-Greylist: delayed 1458 seconds by postgrey-1.27 at vger.kernel.org; Thu, 29 Jul 2021 11:14:55 EDT Received: from cm14.websitewelcome.com (cm14.websitewelcome.com [100.42.49.7]) by gateway34.websitewelcome.com (Postfix) with ESMTP id EA69C17876 for ; Thu, 29 Jul 2021 09:50:23 -0500 (CDT) Received: from gator4132.hostgator.com ([192.185.4.144]) by cmsmtp with SMTP id 97MdmiUzu7sOi97MdmNEoP; Thu, 29 Jul 2021 09:50:23 -0500 X-Authority-Reason: nr=8 Received: from host-95-239-202-226.retail.telecomitalia.it ([95.239.202.226]:48616 helo=f34.bristot.me) by gator4132.hostgator.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1m97Md-002CQn-BI; Thu, 29 Jul 2021 09:50:23 -0500 From: Daniel Bristot de Oliveira To: linux-trace-devel@vger.kernel.org, Steven Rostedt Cc: Daniel Bristot de Oliveira Subject: [PATCH 1/3] libtracefs: Fix example in libtracefs-events-tep Date: Thu, 29 Jul 2021 16:50:08 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4132.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - kernel.org X-BWhitelist: no X-Source-IP: 95.239.202.226 X-Source-L: No X-Exim-ID: 1m97Md-002CQn-BI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: host-95-239-202-226.retail.telecomitalia.it (f34.bristot.me) [95.239.202.226]:48616 X-Source-Auth: kernel@bristot.me X-Email-Count: 23 X-Source-Cap: YnJpc3RvdG1lO2JyaXN0b3RtZTtnYXRvcjQxMzIuaG9zdGdhdG9yLmNvbQ== X-Local-Domain: no Precedence: bulk List-ID: X-Mailing-List: linux-trace-devel@vger.kernel.org tracefs_local_events() returns struct tep_handle *, instead of struct tep_event *. Fix the example. Signed-off-by: Daniel Bristot de Oliveira --- Documentation/libtracefs-events-tep.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/libtracefs-events-tep.txt b/Documentation/libtracefs-events-tep.txt index 4c5cb21..752e830 100644 --- a/Documentation/libtracefs-events-tep.txt +++ b/Documentation/libtracefs-events-tep.txt @@ -73,7 +73,7 @@ EXAMPLE -- #include -struct tep_event *tep; +struct tep_handle *tep; ... tep = tracefs_local_events(NULL); if (!tep) {