Received: by 2002:a05:6520:2586:b029:fa:41f3:c225 with SMTP id u6csp869051lky; Thu, 10 Jun 2021 13:03:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxh3bIGYS/mGDaNFAIqYm//qMVfAd0+0pex3VV/u6hXfrssAbSD2LRO5MdbAHRih+VFCg83 X-Received: by 2002:a17:906:1952:: with SMTP id b18mr279497eje.262.1623355410635; Thu, 10 Jun 2021 13:03:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623355410; cv=none; d=google.com; s=arc-20160816; b=ixlOU8QXe5/p82H0541G1klKkZmvIUFNKZZydm+U/i7YQi/Y7aLVUmmO+DlRJ8DJ4x EZOthHrvW95Ltzz9Qng9OrSe/FoMAlMPFOxW/Z7mHo+VITb9XaSbZhlPtIM2oVK4hq8U HsFeqlzt7Fh4lwctk7hNtaebboxwir/YNRWUPn5QrqN7YxuvfStpc/PJuyGS4eJsE9T/ 4ijPdYl67lzAvj9dG+EKBkg/yaHoVoYbwdVZEO6m+0kmktfNjZE+TofQB5pi5IEmFDTl AZPTG7rJiZICqcIMpdq2GP9qB1vugOkRhFvUumU60pSN9+r8j4sgYpo4thgRSeUOZ1ca r3uQ== 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=d/MT1kHHDocY7jhN934kFNaI8p0FdNz3erqncOr9dZw=; b=cPFZF88/GsfJYWgR/9kUs6ZcfZ4L5cVY7R0uQGSefm6dUpWMLtCvvho147fpeaPE/8 TwzQMOgf1ZrPEBGrMynmo/L1uC1P69GYAlPTD6Y+kSYz1mh4aX8X4463Ko8wsHKZ0QRt GjyK2//ARviRVe+5ysVtqlwqV1OEcH7ithjALLN63aggsrs0Cuy9rDgC2Qo39eqDmpV3 304G867n5NfIinCr3vRcSdcHmaGh+RX6lBpapQbuZ0NO8gXkxk5qsUxoxVViRJXDuyXg nWco9BCsUr/69fxH2Tnxs1khJBKBqxnopRtIOV2dTkPEdpgRTj7tSMUusWzAN5RVV+4Y NlxA== 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 i14si3601213eje.489.2021.06.10.13.03.01; Thu, 10 Jun 2021 13:03:30 -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 S230336AbhFJUBQ (ORCPT + 99 others); Thu, 10 Jun 2021 16:01:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:34506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhFJUBP (ORCPT ); Thu, 10 Jun 2021 16:01:15 -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 4449161359; Thu, 10 Jun 2021 19:59:17 +0000 (UTC) Date: Thu, 10 Jun 2021 15:59:15 -0400 From: Steven Rostedt To: Jiri Olsa Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Namhyung Kim , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-users@vger.kernel.org, Tzvetomir Stoyanov , eranian@google.com, Michael Petlan Subject: Re: [RFC PATCH] libtraceevent: Increase libtraceevent logging when verbose Message-ID: <20210610155915.20a252d3@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 21:08:32 +0200 Jiri Olsa wrote: > Michael did the libtraceevent detection and dynamic linking support: > https://lore.kernel.org/linux-perf-users/20210428092023.4009-1-mpetlan@redhat.com/ > > I think we should have that in Fedora/RHEL rpms already, or it's on the way. > > The detection code could be change to contain things we need. Or it can also be changed to export the version too? LIBTRACEEVENT_VERSION = $(shell pkg-config --modversion libtraceevent | perl -e '$ver=<>; @v=split /,/,$ver; printf "%d\n", $v[0] * 255 * 255 | $v[1] * 255 | $v[2];') -DLIBTRACEFS_VERSION=$(LIBTRACEEVENT_VERSION) Then in C have: #define VERSION(a,b,c) ((a)*255*255|(b)*255|(c)) #if LIBTRACEEVENT_VERSION >= VERSION(1,2,3) To test if the libtraceevent feature is available? -- Steve