Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp142937rwb; Tue, 13 Dec 2022 15:18:33 -0800 (PST) X-Google-Smtp-Source: AA0mqf6N4pYEG0IjmzP8w94cP0u246QIIhnDNzdZvOq/KVLlWb8q94B+qMm8OsKVY1CI/79ZVa/U X-Received: by 2002:a17:902:d18b:b0:18f:8f1d:2352 with SMTP id m11-20020a170902d18b00b0018f8f1d2352mr10228758plb.30.1670973513750; Tue, 13 Dec 2022 15:18:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670973513; cv=none; d=google.com; s=arc-20160816; b=uUpgEu0PtyUK2bBKNEOZ/Gm3pI3YVTxRNZyMO+mgxWgehZqcyBZqP9DX4AeQf0nnAj QWn86/3/gWOg9JwfbvS9cTqeik8rp3J140bgBjGRPzrkoHDXqrBheJGKOxX/gKEypaVk LdUvFfV9O/6JG8p64Hw3JxeIdv6IP6zhLxjIYweVlg9tfTy2K5Y7mwQUliNmzYil5ozN P2mRosoRKhr/+/MaNTq+2/ju6ZAXa85tGP/AkV9b4+1pGNX7OZCwqi52SwjCF5MFzDXx qjrlxsg7Sets6sYGfyMk66EQqQ71aJBGewBgTnQk+1IMYjSuO8lBLS1SjtBQmT/SMVgZ uTbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=P2rPSpV30DMArlILJhVf/pTOykjarxMulIIIDDH7UVw=; b=ZaRItfwvt6dQTWrHLVf5QKZfDfel8RV/PNg43N+yInwvBX8mlHy82eDQYv5ZulXcGb g7KujSpH8Hd1NrRlp/P/dCYuD2C4LRq5KQLjZ0vsLGDXZWOPlKdUI6628f3o9twq7EUB 6mYWW29wqQz4ePAoSlZqYTiYpT8QD94ixZpjv43ZRgfNjW5vnRZNc7YOOvRfluxVDhLB bMCuL2TcNdmgG4zP0vq7tA2GHowJ2QLryrAPHuwwLla/7EVviyTq58Y+nIej8BKWa9Kw pZrZJXkToSy+f7p5tUp4iac0AsUT8L5FVDNt82Rw6qDG7xo+F/WLArHggTp9COh4E77f yw+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G6kBGUFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g1-20020a170902fe0100b0017f9b980fadsi946674plj.446.2022.12.13.15.18.23; Tue, 13 Dec 2022 15:18:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=G6kBGUFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S236712AbiLMWsD (ORCPT + 72 others); Tue, 13 Dec 2022 17:48:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229543AbiLMWsA (ORCPT ); Tue, 13 Dec 2022 17:48:00 -0500 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5ABB023EBC for ; Tue, 13 Dec 2022 14:47:59 -0800 (PST) Received: by mail-wr1-x436.google.com with SMTP id h7so17446248wrs.6 for ; Tue, 13 Dec 2022 14:47:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=P2rPSpV30DMArlILJhVf/pTOykjarxMulIIIDDH7UVw=; b=G6kBGUFFgfwTZSKoa0aosDD5Wxux3w3OF7RvGU0xEmTxpuBtQgm85e1jZ/rg9YrLu9 fPF+IPDmy2MarCLC0d1UOBcD0CQ4Sez8K3qhTbguNDoKsyZsqKNakie5Kymj86C3yI9w JYCfL6I/fgNHIUfHOn2ZXxfOjAtDP/WHjBCsg3dWbawsEhu1doOivfn2bdzSnU5qy34K bRqFyoY/7fRjBnjdlm7k/a7UAR5eTGZAWIoJoyKLLBSvs7Xge3iriN+PmXs7TdSsQjdC pCc8V7pPIXt20wu6dTYkIwcEf8q3rL+wyFpD4knHIo5KeVP2fHrVrddQJLU79ZJzTd90 7eKA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=P2rPSpV30DMArlILJhVf/pTOykjarxMulIIIDDH7UVw=; b=Ll2lbwvGDrvS+tsy+NvdLm50Wyx7kiLtXsCtDLw9SEzUzZe4nnbIkqaIMJbohQGdd5 72WRByPgeGY03EzUqivrQ1XB5JmROu3uNbO8sjrXbZC5475pfaUd1Df48TLaoClyZ9Ls vuD6yog4y7JJntQ/VlEpVsjZNXD9MW94Hdc028V/B+a/lCx3iYVQSgP6GR4Uo+n5h+ez C83irwHbvXfkjkEBG4yFkHy8VUmkcIhbwN6SotktvyJEQZ/CCgLTxcEP4FuCjhRdvzvQ JTifPuicey5uMGSU+ycktjQS5cL+3gsGHOkp61+EKN1PaFuBrRzk82eIQvOYquumhflo J6Dw== X-Gm-Message-State: ANoB5pl/Z9O43Z5/o9uOKXV58cPSSPhRnOLA1fKSBrTjjl9heoYEpyAS f8ad7Q5IHanyG5Ae1wbcCYDje/7NLSlAOiyG/QdYEA== X-Received: by 2002:adf:f3c5:0:b0:242:5caa:5fbf with SMTP id g5-20020adff3c5000000b002425caa5fbfmr11175741wrp.300.1670971677544; Tue, 13 Dec 2022 14:47:57 -0800 (PST) MIME-Version: 1.0 References: <36CD1041-0CAE-41C1-8086-C17854531B3E@linux.vnet.ibm.com> <8F6F0C27-53F3-4837-A19C-845768253249@linux.vnet.ibm.com> <927374FD-C6C0-42B3-9F93-5379A5898FB3@gmail.com> In-Reply-To: <927374FD-C6C0-42B3-9F93-5379A5898FB3@gmail.com> From: Ian Rogers Date: Tue, 13 Dec 2022 14:47:45 -0800 Message-ID: Subject: Re: [PATCH 2/3] perf build: Use libtraceevent from the system To: Arnaldo Carvalho de Melo Cc: Athira Rajeev , Arnaldo Carvalho de Melo , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Nick Desaulniers , LKML , linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, Stephane Eranian Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Dec 13, 2022 at 2:34 PM Arnaldo Carvalho de Melo wrote: > > > > On December 13, 2022 7:09:07 PM GMT-03:00, Ian Rogers wrote: > >Thanks Athira and Arnaldo. It is a little strange to me to be using > >the shell to do a version number test. The intent was to be doing > >these in the code: > >#if LIBRTRACEEVENT_VERSION >= MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) > >vs > >... > >LIBTRACEEVENT_VERSION_WITH_TEP_FIELD_IS_RELATIVE := $(shell expr 1 \* > >255 \* 255 + 5 \* 255 + 0) # 1.5.0 > >ifeq ($(shell test $(LIBTRACEEVENT_VERSION_CPP) -gt > >$(LIBTRACEEVENT_VERSION_WITH_TEP_FIELD_IS_RELATIVE); echo $$?),0) > >CFLAGS += -DHAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVE > >endif > >... > >#ifdef HAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVE > >I'm a little selfish as I'm maintaining a bazel build and a single > >version number to maintain is easier than lots of HAVE_... tests. I'm > >happy to follow Arnaldo's lead. I think the test should also be > >greater-equal rather than greater-than: > >https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/tree/include/traceevent/event-parse.h?h=libtraceevent-v1.5#n128 > > I'll fix that, and in a case like this please consider to send a patch with your preference, I'd happily > graft it. > > - Arnaldo I can fix it. I can fold it in with: https://lore.kernel.org/linux-perf-users/20210923001024.550263-4-irogers@google.com/ which I mentioned in this thread. Thanks, Ian > >