Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp767395pxj; Thu, 10 Jun 2021 12:11:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwWumM0a3ea0XdfYYSOc3YYFYdFsCq5tZMjMYp8npJKcATR3mMWYlqQ7Sj9zQ3osQkxULDv X-Received: by 2002:a17:906:1806:: with SMTP id v6mr143701eje.454.1623352305876; Thu, 10 Jun 2021 12:11:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623352305; cv=none; d=google.com; s=arc-20160816; b=ejLpVdqQq5nJRJJsRCmamBWleGlOgQrw+6xg658JHAiR/ON7hCGayctPhDhKPaW1gC p7cw+eZS76RmFotyYM9EX1xnLQWmxviADgw6kgL4gOeGqjh0i7DFYLGHIjm57CNrtaOW JLgSemtjiwA32q1w+q+II6cqHltLga08CwPoZgopfY49zuDQ5ebrYPMkJ5v/D4kC2r/c N1Tk8MxaiMUQ3a28vPiiyneBkm9HBgjqv3Qs1lyasBleqwK+hTrDydoPZsgNsqTZYKyE SjDLurN+zxpR2J8eRQbCbHmKlRjvM8KoF5AmEGeMGvua821ciH9CkLPbT1raMPnjJtP+ O2Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=VLobxehRoyA6A0RuCeGVQ1FkoxfAMrcpvrRVgnHIRDg=; b=WsCMagSNE43xA36WbMbQPUX0VoNkUQZrWw/lRJ82FpuK1aLvghfmfHhczx2fJcdBno lof1wBWCG6Inj34U60+HsPhSMADUnY+HLg7GKLOqT8zne7uAgQJgBYvJ7vJvig5dSY6q P3as3/u5U4UlGB1VbbJsnCls4cKklRBwcT78o9G6UdqFLIYNA2cYivwfKqMq6uwq96Xo PPa3O3Mqb51Ob75b08iKFjP47B7dK5NKfUAk/e4l7OakmqSzbareCc4Yv2y+joHrnJRM Y4zA/WGUlEhSDMS8cpY6uLY7Up2DQ1KG8VOJFHCHPC6ukZN37gXcwsO1kUaimWwmiqBI hJSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MFBIBRC9; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh2si2807222edb.430.2021.06.10.12.11.12; Thu, 10 Jun 2021 12:11:45 -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=@redhat.com header.s=mimecast20190719 header.b=MFBIBRC9; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230293AbhFJTKm (ORCPT + 99 others); Thu, 10 Jun 2021 15:10:42 -0400 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:57029 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230077AbhFJTKl (ORCPT ); Thu, 10 Jun 2021 15:10:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1623352124; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=VLobxehRoyA6A0RuCeGVQ1FkoxfAMrcpvrRVgnHIRDg=; b=MFBIBRC95wUHC15HdAjpNgz91tLsGuIM8V97WFd0Jwvup93Y2D1xf4GqTYEMizfMpoiGU7 sor70bUujRxAofPMrnEP3vQEd7oH7BcgSlw2Ycxv2zEh4rVC91gWYigL+KHpo/5f2KuFe2 eBYUSh9Jcs8IHs/Tm8kbtvP/PkFn/uo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-553-9ZHx0YGBO1G9cSfOXhjNzg-1; Thu, 10 Jun 2021 15:08:41 -0400 X-MC-Unique: 9ZHx0YGBO1G9cSfOXhjNzg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8A48D57229; Thu, 10 Jun 2021 19:08:37 +0000 (UTC) Received: from krava (unknown [10.40.195.165]) by smtp.corp.redhat.com (Postfix) with SMTP id 466BE7DBD4; Thu, 10 Jun 2021 19:08:33 +0000 (UTC) Date: Thu, 10 Jun 2021 21:08:32 +0200 From: Jiri Olsa To: Steven Rostedt 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: References: <20210610060643.595673-1-irogers@google.com> <20210610103927.44462e35@oasis.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210610103927.44462e35@oasis.local.home> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 10, 2021 at 10:39:27AM -0400, 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. 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. jirka > > 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 >