From mboxrd@z Thu Jan 1 00:00:00 1970 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 1FEC6C4320A for ; Thu, 29 Jul 2021 15:39:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E60A360F46 for ; Thu, 29 Jul 2021 15:39:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237846AbhG2Pjh (ORCPT ); Thu, 29 Jul 2021 11:39:37 -0400 Received: from gateway22.websitewelcome.com ([192.185.46.156]:24819 "EHLO gateway22.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237851AbhG2Pjg (ORCPT ); Thu, 29 Jul 2021 11:39:36 -0400 X-Greylist: delayed 1500 seconds by postgrey-1.27 at vger.kernel.org; Thu, 29 Jul 2021 11:39:36 EDT Received: from cm17.websitewelcome.com (cm17.websitewelcome.com [100.42.49.20]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 1695953E95 for ; Thu, 29 Jul 2021 09:52:27 -0500 (CDT) Received: from gator4132.hostgator.com ([192.185.4.144]) by cmsmtp with SMTP id 97MfmzCI1MGeE97MfmGmYd; Thu, 29 Jul 2021 09:50:25 -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 1m97Me-002CQn-GS; Thu, 29 Jul 2021 09:50:24 -0500 From: Daniel Bristot de Oliveira To: linux-trace-devel@vger.kernel.org, Steven Rostedt Cc: Daniel Bristot de Oliveira Subject: [PATCH 2/3] libtracefs: Fix example in libtracefs-events Date: Thu, 29 Jul 2021 16:50:09 +0200 Message-Id: <262403b667d40185c71497e947fd59f4ed48e226.1627568431.git.bristot@kernel.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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: 1m97Me-002CQn-GS 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: 26 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.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/libtracefs-events.txt b/Documentation/libtracefs-events.txt index 3fe9199..102728d 100644 --- a/Documentation/libtracefs-events.txt +++ b/Documentation/libtracefs-events.txt @@ -122,7 +122,7 @@ static int records_walk(struct tep_event *tep, struct tep_record *record, int cp return 0; } ... -struct tep_event *tep = tracefs_local_events(NULL); +struct tep_handle *tep = tracefs_local_events(NULL); if (!tep) { /* Failed to initialise tep handler with local events */ -- 2.31.1