Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp3169746pxb; Tue, 21 Sep 2021 16:36:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcGHSih7hDt2BVpAcLNuM47kGk/5JDGUzqA6VwXdJfW8PqAlWI/26uQFXz0EskpWoyZR4O X-Received: by 2002:a05:6638:3813:: with SMTP id i19mr2274811jav.16.1632267416949; Tue, 21 Sep 2021 16:36:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632267416; cv=none; d=google.com; s=arc-20160816; b=X8s87ViSy8xdg92jSQoqsSH69bZZLSEJwKqorXvQRsgNZYS891AM1NuWfnOkboP60z Lw3rzFOJ3K0pX6FIIt8Xsb0zqigiFagts90u9M1m7xs2HOlALJZXEXW71RNJYM1xbktU T7FMbiCER6HDsAvVKRImZcI4Xr94C1Xnr5OoYye+dsP+rTlE0za7W9L1dKXbeInGqxz8 J2tUmOZLfmKrWDfacDXEXFp8gk7t8WjBGas5WNA5OYYnjlKVF+HrwkEQXW95IT3ZNr6L W02T4IIiUBDB/yjEvQXljyLbd2SoH5Kkl8bHoad57SJd45B65hHa9BcqHPkvx1XnicC1 xN/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=0fQ8TCUq2nIKYsU5pQLtTTkuNxp/JAtlPHlUXR9S+Vg=; b=Psq1VW4vlFZSWcLMuX3VMkVMyFZ+Ws04pLowqmONBPeOx4zjFUbPIPVlKWTZ0ly+Sp 9HdHm6lkZ6Y7M8tazyEu/iZiW9HnBxJVqGbD398ZYqNTQXza6qIyvCrt40HW4R/KI+8A +VGHaiBMRg1P+N8sFobY7AymGZFcq7lo2GSLFpR8kiCgKvTn9NEInnQnhDtzABetTIxV f+2cQki7dgOIByGjnmQ2leUZ+ofaxoQ/sf1XhVGBEBvjPFV3sps+f9QwVgcAshW8p85r RzvZ+NwKZan7msIKtqOMRhen50oonzYp4v529/LTB+2HGhRqmryEkouUieMYp6gyOpqa SVKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=M8rUSoyq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r17si717603iov.104.2021.09.21.16.36.44; Tue, 21 Sep 2021 16:36:56 -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=@google.com header.s=20210112 header.b=M8rUSoyq; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235109AbhIUUu0 (ORCPT + 99 others); Tue, 21 Sep 2021 16:50:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235120AbhIUUuZ (ORCPT ); Tue, 21 Sep 2021 16:50:25 -0400 Received: from mail-qk1-x749.google.com (mail-qk1-x749.google.com [IPv6:2607:f8b0:4864:20::749]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B098C061756 for ; Tue, 21 Sep 2021 13:48:56 -0700 (PDT) Received: by mail-qk1-x749.google.com with SMTP id p23-20020a05620a22f700b003d5ac11ac5cso3116676qki.15 for ; Tue, 21 Sep 2021 13:48:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=0fQ8TCUq2nIKYsU5pQLtTTkuNxp/JAtlPHlUXR9S+Vg=; b=M8rUSoyqhCE2pVWw+XCFo9eKV4+oKAaS77hyjuGwvD6X6Hm2OwL6HvrL6ERj+CKLSs LSNAUJUgR27wTDCNyU5/vDnSeMfa0nqXs5RItXkwcGn+V8RRcFl30F1aGJXXQWE7PCR5 4tIHLWzubEHJ5D1cmOTmebr+F9bvxls+Sim2gCdFGsOYqfKIi3zbLKvQ6hxEAkMU1K4r 3Z22Nkdp2XloJZKFsPIjYZr7xCdFo/m1UVe6DcMZDrwJIsiqbsMGBXPi5IhfHn1BxGBO nbBzpjdz18jsU+HSSvYYHRFuEL+O6y/tqsL4dCHi9hhu6+YR6m6vu0l5vG5Y1ScQY/US 6eRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=0fQ8TCUq2nIKYsU5pQLtTTkuNxp/JAtlPHlUXR9S+Vg=; b=kJt+NQjc7OEp+gh1lL9p+Ile3K5P1xYbSFx/Pkv8hj+RbmEY+wVtci7s8eaX1+UI3G VDKTxr+hWWXZ0+g6UnJhHCOKSKbrMQpNm5Y9kYkZrVqyxgfCtAnKujqzyzNtOqaKTsFt dCQLQjg09BMtj/+mskYjXj/8XNOBnw8/OrC8x2wbnPaFHhnOQ3LSxAL1gnM2sn4k9ZQ5 jB3xN4zUAzf+lwmlOYe+WNjEl+og6W41ffBZ0xliqq6A5WzcVNO+d37bCWAeTeefppZV ycfURicZl8ebsUHMgSXH2guH2mOKjBsXK1bOSMWUdaOaU5OIMqB/RnW5NoXarZh+iFWY eMGg== X-Gm-Message-State: AOAM532hUYr+OmZ8Q1EzZz3KgigRgdZq0teNpBxXqwTVXJXLiSIS/Sad fWteGnGai+MFWflg5xwYuEHhy2oKOWRx X-Received: from irogers.svl.corp.google.com ([2620:15c:2cd:202:dffa:819a:f0e2:47e]) (user=irogers job=sendgmr) by 2002:a05:6902:1107:: with SMTP id o7mr40185706ybu.454.1632257335328; Tue, 21 Sep 2021 13:48:55 -0700 (PDT) Date: Tue, 21 Sep 2021 13:48:38 -0700 In-Reply-To: <20210921204839.236840-1-irogers@google.com> Message-Id: <20210921204839.236840-3-irogers@google.com> Mime-Version: 1.0 References: <20210921204839.236840-1-irogers@google.com> X-Mailer: git-send-email 2.33.0.464.g1972c5931b-goog Subject: [PATCH v2 3/4] perf: Add define for libtracefs version From: Ian Rogers To: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-devel@vger.kernel.org, Tzvetomir Stoyanov , Steven Rostedt Cc: eranian@google.com, Ian Rogers Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This will allow version specific support of libtracefs. Signed-off-by: Ian Rogers --- tools/perf/Makefile.config | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/perf/Makefile.config b/tools/perf/Makefile.config index 2001c315f0db..0ae2e3d8b832 100644 --- a/tools/perf/Makefile.config +++ b/tools/perf/Makefile.config @@ -1108,6 +1108,12 @@ ifdef LIBTRACEFS_DYNAMIC $(call feature_check,libtracefs) ifeq ($(feature-libtracefs), 1) EXTLIBS += -ltracefs + LIBTRACEFS_VERSION := $(shell $(PKG_CONFIG) --modversion libtracefs) + LIBTRACEFS_VERSION_1 := $(word 1, $(subst ., ,$(LIBTRACEFS_VERSION))) + LIBTRACEFS_VERSION_2 := $(word 2, $(subst ., ,$(LIBTRACEFS_VERSION))) + LIBTRACEFS_VERSION_3 := $(word 3, $(subst ., ,$(LIBTRACEFS_VERSION))) + LIBTRACEFS_VERSION_CPP := $(shell expr $(LIBTRACEFS_VERSION_1) \* 255 \* 255 + $(LIBTRACEFS_VERSION_2) \* 255 + $(LIBTRACEFS_VERSION_3)) + CFLAGS += -DLIBTRACEFS_VERSION=$(LIBTRACEFS_VERSION_CPP) else dummy := $(error Error: No libtracefs devel library found, please install libtracefs-dev); endif -- 2.33.0.464.g1972c5931b-goog