Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp754872pxj; Thu, 10 Jun 2021 11:53:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxP2F/91WtJvDO2HGgXr9gsX+27jQ2ubIIO30Q47qMRLWftXTZt93N+7MBXbS8pHCp/Ypeb X-Received: by 2002:a17:906:5947:: with SMTP id g7mr66588ejr.351.1623351210642; Thu, 10 Jun 2021 11:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623351210; cv=none; d=google.com; s=arc-20160816; b=FUdsvLco2T5ZAQ7HIfGxYwi/CxoOaxAZqSGyM/uccUmCacCehKXxLRPhTrL4rdW8dm nkDMwrHfz4gFuhNXzJOv8+Fzow6iX0hHK0fTiSyP2GmHzFW2RphvIM0VQRqxzTeEfiIt c7SIOkIsSDzE9B0UfNdY00miIWhPrQ1BzzKwZETjk7r/+HVlKp9JXGbdbpMfyL+gLfiG 7oJxYJan+mn1S/G2LrFjcHWzPPJb7iTrXgMs6ru+QM94MS5dlinV0q5RErbXy/Hw4bl/ mHvaD93cMhiqnUwLUjVkXsNQ97MAKJx5CHHv+Zbo4kt7sjUlcJsT3dIHW7/2sVNm2+fk xJWA== 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=J21h3J8NVq3CdoGsD791C/g3nKNn/C1NFZAumTjol6w=; b=Ymx6xDZeBU1/eojtCaFSMPFcCe1DfU/SXc6tWIvqvHU/Mjh9Fg3M3EVMaQf0JNMb9C qZWpni38bT62Yja1pT3fon10GSnIR/HWukufnv+3zVXkp/sAGwSF1Bdm+B7oJ7lbJwlR ii56OoxjzQ5PBqEfmtBOg0zpLf7hpGg+4aaoe6g76vOqUeBWLpfBijecvFAr096N6ONb yoUHhLgmZXRYqs22SFrjlHZsqnTTw1BuVaKBxYdWcT2AbbI4pLwHfftH3H3wgfhPtMLL QPU/kjRmVxyc1xE/UXbqS+MvjEyEZ32F59H4MMv6oAY7gDVGsPPals7YtmOxTFQkY7us +etQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="Y/Dc+vtX"; 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 v3si3011159ejf.18.2021.06.10.11.52.50; Thu, 10 Jun 2021 11:53: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; dkim=pass header.i=@google.com header.s=20161025 header.b="Y/Dc+vtX"; 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 S230179AbhFJSxL (ORCPT + 99 others); Thu, 10 Jun 2021 14:53:11 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:52944 "EHLO mail-wm1-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229935AbhFJSxK (ORCPT ); Thu, 10 Jun 2021 14:53:10 -0400 Received: by mail-wm1-f45.google.com with SMTP id f17so6761495wmf.2 for ; Thu, 10 Jun 2021 11:51:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J21h3J8NVq3CdoGsD791C/g3nKNn/C1NFZAumTjol6w=; b=Y/Dc+vtX0dMNI2J1k+8fWMwRKoND/FZhtD9xDRSycyTrbFDvJND+xMM58qM2pvkp5E Ee8MMWjbDdYTiRqGQPmkkmZQ4vewdM9GwTqDdCLZzXXMbKs05zHSpU0YhCKpP9lBCdaQ mhFcSqBH2OvI2N3zDAXAvmhkQKBSd2wHzsgzLa3eM+cNzVF+9uzEwSLOHmwo6JR+Tlds Y9ZlXr9X8ebKE1aC/mdyd6OU54ydQvHaVLq4whjaO+Ee/TZHy1GaSTIsYFq4Mz8ejS6m Uh94HXhKle7/1cMx2/Eecuc28gxbh76KImlTsmSrRFrDBifW1M4S/ZoGFEhe5Mj1joVO MpMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J21h3J8NVq3CdoGsD791C/g3nKNn/C1NFZAumTjol6w=; b=KnlEm4aVjOt/ZbheHw/x7xqbhKrvnFeHiBZKVk75VVPdbthN1fpX2xEXLr+nUd3Idz r2uDMfp1a+8k2euX4MxnUsMWY27WCz67sv2YCopesyjiOfPtlEKswBVRMz56VUI8Fo/H nswZLYfOiHSM/u16FxBr/Xwu1+muh8U/4ieijKgOZJvoPYACpf0IR1OtVq89aDyNj8yU GI6jUIXzHOnFbspJiZpd+GDFoPl/PQkRyYwBnC9D+QL1v5xrtRd/AU59xHv7z5qSihaW 9RpyR4vxi2EXVUfGKvKBLUMnaLIBYNQ2ifQIJdAOqCf/96EgzwcbDN/21KBscPWNPUnl tXtw== X-Gm-Message-State: AOAM530TjHFj/4U54ahuvrxkxleydnqXJCQajSnhJIIsdgQCTOwusbcj UOuq/qYbz/IdpARZrZpMUtzD4T+Kpk8A4HUdtruRUg== X-Received: by 2002:a1c:b603:: with SMTP id g3mr16392963wmf.58.1623351012835; Thu, 10 Jun 2021 11:50:12 -0700 (PDT) MIME-Version: 1.0 References: <20210610060643.595673-1-irogers@google.com> <20210610103927.44462e35@oasis.local.home> In-Reply-To: <20210610103927.44462e35@oasis.local.home> From: Ian Rogers Date: Thu, 10 Jun 2021 11:50:00 -0700 Message-ID: Subject: Re: [RFC PATCH] libtraceevent: Increase libtraceevent logging when verbose To: Steven Rostedt 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 Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 7:39 AM Steven Rostedt wrote: > > On Wed, 9 Jun 2021 23:06:43 -0700 > Ian Rogers wrote: > > > libtraceevent has added more levels of debug printout and with changes > > like: > > https://lore.kernel.org/linux-trace-devel/20210507095022.1079364-3-tz.stoyanov@gmail.com > > previously generated output like "registering plugin" is no longer > > displayed. This change makes it so that if perf's verbose debug output > > is enabled then the debug and info libtraceevent messages can be > > displayed. > > As this API isn't present in the deprecated tools version of > > libtracevent I'm uploading this as an RFC. > > Thanks Ian, > > We need to start porting perf to using the upstream libtraceevent > library. I think the best way to do that is what we did with trace-cmd. > That is to have the make files check if the minimum version of > libtraceevent is installed, and if so, use that instead of the local > version. If it is not installed, produce a message encouraging the > developer to install the upstream libtraceevent and warn that it will > be using a deprecated older versino, then build the deprecated local > version. After some time, we could simply remove it and make it a > dependency, but I want to do that when all the main distros being used > have it. > > Currently its in the latest Debian, Ubuntu, and Fedora. I also believe > its in SUSE but have not checked. It's in Fedora 34, but it doesn't > appear to be in Fedora 33. As that's not too old, I don't think we > should make it a dependency as of yet. > > -- Steve Thanks! Is there a way to do something like: #if LIBTRACE_EVENT_API > 123 ... #endif so that we can make sure perf is taking advantage of the improvements in the libtraceevent API? Ian