Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp780956pxj; Thu, 10 Jun 2021 12:34:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMCqJhLB0vDMMkxkvFfltUBZ96u8x5bLZcodUe2M4FjJlCr6i/PSrwINew+oAdDJsKbuDw X-Received: by 2002:aa7:d34a:: with SMTP id m10mr84968edr.57.1623353648779; Thu, 10 Jun 2021 12:34:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623353648; cv=none; d=google.com; s=arc-20160816; b=iFO88PmdzKNpzutr33L1kdk/Olpbb5m9uKUmnAK7NImbYuKfeL9smFQBB1mFb+nH7T XjaccBRkVf5wpX/cuQHSJKa28UNNh//Jo6hvT7ner0YKuHHCTBSPEM8MNP415XWyaEC5 +JvPk3TfllsJGtfu8jY74yLce2rQBkJhWOC4Yg1zZIV1M7036BmgPEZ0EDNrcmVDLgLS V2iIa/a6SGiwCedcOy2GFKuL1Cd1SDHXcwLllBVkmXXa8zaURCapkKC5Dbs+gTT+lJ+1 xu6sfadKkqeG7Iwr3TCM6d+qmx9RXhZGOp/pr+T1KYwwJttqhF/Wa0bfiu7NLLPQKt+w 0a/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=kelWwbxC1BVfgygXjazMg8OU7/eEOknhfmI74Xqeg5g=; b=IkUH2B/9H4yFQGLGPv3wG7967ykwaxRvW0wx3npLHXITIutUVeV2/P+Dhuv0zyzMZc HWpmdIihJW3nelxuoXij1wiSGUA1ShEIHpRLaPXMQB9SqRUFNFsWG6jbW3b8jKt3lPMH 88lBnYsYckcVty3zu37NN1nKTByF0mtXIVBpkH/Ojq7J4VDov80vCfruailcMK5pX+YH 2ed4d2m/W8BYpzLIL5fJshPE0NkjY6mCOZYJL8Kl/KbYnJTVBR8CWCfx6VSVISn4nJgT IalP9zdAOitCOSAgI6n9R0p6tX7CiqywSzcxEXyCVd1AFbwYpcBXX1+/9lv6+vI1NztR FhZg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h23si2902320edq.536.2021.06.10.12.33.44; Thu, 10 Jun 2021 12:34:08 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230284AbhFJTeV (ORCPT + 99 others); Thu, 10 Jun 2021 15:34:21 -0400 Received: from mail.kernel.org ([198.145.29.99]:35330 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229941AbhFJTeU (ORCPT ); Thu, 10 Jun 2021 15:34:20 -0400 Received: from oasis.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 30B71613F1; Thu, 10 Jun 2021 19:32:23 +0000 (UTC) Date: Thu, 10 Jun 2021 15:32:21 -0400 From: Steven Rostedt To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users , LKML , Linux-trace Users , Tzvetomir Stoyanov , Stephane Eranian Subject: Re: [RFC PATCH] libtraceevent: Increase libtraceevent logging when verbose Message-ID: <20210610153221.476063dc@oasis.local.home> In-Reply-To: References: <20210610060643.595673-1-irogers@google.com> <20210610103927.44462e35@oasis.local.home> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Jun 2021 11:50:00 -0700 Ian Rogers wrote: > #if LIBTRACE_EVENT_API > 123 > ... > #endif > > so that we can make sure perf is taking advantage of the improvements > in the libtraceevent API? Yes, and trace-cmd did that. In the Makefile: LIBTRACEEVENT_MIN_VERSION = 1.2.3 TEST_LIBTRACEEVENT = $(shell sh -c "$(PKG_CONFIG) --atleast-version $(LIBTRACEEVENT_MIN_VERSION) libtraceevent > /dev/null 2>&1 && echo y") ifeq ("$(TEST_LIBTRACEEVENT)", "y") CFLAGS += -DHAVE_TRACEVEVENT_API endif Then you can use in perf #ifdef HAVE_TRACEEVENT_API ... #endif That's just one example of what you could do. -- Steve