Message ID | 20221213232651.1269909-1-irogers@google.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:e747:0:0:0:0:0 with SMTP id c7csp420468wrn; Tue, 13 Dec 2022 15:28:58 -0800 (PST) X-Google-Smtp-Source: AA0mqf6o2pP5dKZaDO5PKv3MIaj30sne+v2dt6VgSZxPW6oIvEBmwy5GPyTi13MSAO4H4qjztKgw X-Received: by 2002:a17:906:6dcb:b0:7c0:d31d:640 with SMTP id j11-20020a1709066dcb00b007c0d31d0640mr19763736ejt.74.1670974138098; Tue, 13 Dec 2022 15:28:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670974138; cv=none; d=google.com; s=arc-20160816; b=C0eH/SxhBvMJmO0tfIkChLbkKpdFTjv4Y7so4bWpns6HO36UCW15vvitUX9Zqtg8Kf goC1fKpF1UMwP/0AMeS+d8zPcZ+eBmYdKoTN4EF3SOVdvzMI2Eyfmt2Hf+mrM+MHZAnY rgXb1UpTcSFfsPO1ptnMNkM6kwqZyjcxV8A3jc9Y2Y7LM2n1VT6VH9vUfgLNWml1CfmX x4tbezdlHRs7Bn7zDTfiIC41isjax5MW55Z+Q1DpgNe8eLMKBiFPW05cSbmpAaKNKohy D5h9UR+cHFdqgfbik24M1T9XzHmmSgSniW8Q/d4xKEeAQtkwv4WxrTzICCVr5P5grAYH eeFQ== 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:mime-version:message-id:date :dkim-signature; bh=FHQZUcHwOCNQCQu4EEiVjneXbxGX4iNgf8b6SmHwn0g=; b=Io8HfOLTxWpwxqLGfloUbAynuDsYMwdaWpJjjBieinvKS5C4++x3P+kCHNbdG67NHN K3Dky5rLfGNEjie58j3TZEI967MY59cscXtAEHnUVz+ULnulETp+nVJ5s/D16xxeMizC o9KMirqjymysDonOsN/toHd2pajlPsnvGQAsllY4+eUi41WFNy8IYElAdhOLtSDyf5tl s139w5MpJOPDlI9PtldB3IUvseUmdG6FZHHoxdkgJCqAZl9cL14nAI9jK13iZbTe3sPe dULcDE9e4q/qqwHv0LaHAfo1sy50dVXuK9TH8kGUdQQKv6TsBfwip5rrJ1O8cd/Iz0xw qVlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=r8yHpGdZ; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hc10-20020a170907168a00b00780328a0868si10824423ejc.110.2022.12.13.15.28.34; Tue, 13 Dec 2022 15:28:58 -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=r8yHpGdZ; 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 S236942AbiLMX1M (ORCPT <rfc822;jeantsuru.cumc.mandola@gmail.com> + 99 others); Tue, 13 Dec 2022 18:27:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236710AbiLMX1K (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 13 Dec 2022 18:27:10 -0500 Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4C8D21A1 for <linux-kernel@vger.kernel.org>; Tue, 13 Dec 2022 15:27:07 -0800 (PST) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-3dddef6adb6so187405987b3.11 for <linux-kernel@vger.kernel.org>; Tue, 13 Dec 2022 15:27:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=FHQZUcHwOCNQCQu4EEiVjneXbxGX4iNgf8b6SmHwn0g=; b=r8yHpGdZu5aIN/QCfTXrmNUZMMFwjavoMKQ1kc+qlVCoRP/pV148OkgD3Xqa+/5zy0 8yZIR/J9/Fpn+9ePpZX9JquD0mxHLTa1e1an62pwgckN01U9oeO0i6QgUez8Yp5Pdn6A MEGpDvLHGzvOMpPEqq9xELuZsOTOkrZ0s6ikeQllHLyzGjU+5ty6H6TRteniIQ/HRnFF 6M5Q0TV7HFDU2IZq+E7t/NFeQDz7KxXCjg6zgNme32v7Pm/ogZ5ls/hIqpfxc+A0aRKW TLdtQQHCW77xvdnfXTRJus5I3jgteloTf9YD5fpeDmorgE+RFMyKgUA494xj4CUSjPvZ DnHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:mime-version:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FHQZUcHwOCNQCQu4EEiVjneXbxGX4iNgf8b6SmHwn0g=; b=llAqo89GKRsEsO6qhNh1hv0J2iND7y1VGggg8AqP+6efuEuwL+P0FtfUDpeZVYEGn6 SUXLBYgqISRevwpRQAjjQCVwIYRGNPV9hEh5hxWImII42txv46iLS5IWAXAZtuewiG9w bDxdy0Q1PqpLPwPGMc5MKdk2JtH0eCKXqUXaiCrYWHgUGzDSieTYzNPHBJ6PX2HgGHvu RPkJ511Zy8BDOFHy5GDdKA1zYrhUA5uvwVEUROI3DN6uIc6vm9Ovn6YpV8Bd91cLbVon fMHM3YE150dKZFopckxxmh5G/C5muzsedc9gFaA72kKeXQvqsDNIPKlWdGhOTREelupV OiDQ== X-Gm-Message-State: ANoB5pmrVzYdAQMeAL6hJ5UKk87pu3RzORO7CaxOW11B01eV6IihB/oi 6tBrpKAgg0EwKGPqUKvBNVWMVbcKWBxM X-Received: from irogers.svl.corp.google.com ([2620:15c:2d4:203:6268:b448:f7f4:4c2]) (user=irogers job=sendgmr) by 2002:a25:414f:0:b0:713:a975:c696 with SMTP id o76-20020a25414f000000b00713a975c696mr3780948yba.511.1670974027010; Tue, 13 Dec 2022 15:27:07 -0800 (PST) Date: Tue, 13 Dec 2022 15:26:46 -0800 Message-Id: <20221213232651.1269909-1-irogers@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog Subject: [PATCH v1 0/5] build/libtraceevent resends From: Ian Rogers <irogers@google.com> To: Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, Arnaldo Carvalho de Melo <acme@kernel.org>, Mark Rutland <mark.rutland@arm.com>, Alexander Shishkin <alexander.shishkin@linux.intel.com>, Jiri Olsa <jolsa@kernel.org>, Namhyung Kim <namhyung@kernel.org>, Alexey Bayduraev <alexey.v.bayduraev@linux.intel.com>, Adrian Hunter <adrian.hunter@intel.com>, Anshuman Khandual <anshuman.khandual@arm.com>, Andi Kleen <ak@linux.intel.com>, James Clark <james.clark@arm.com>, Sandipan Das <sandipan.das@amd.com>, German Gomez <german.gomez@arm.com>, Leo Yan <leo.yan@linaro.org>, Timothy Hayes <timothy.hayes@arm.com>, Kan Liang <kan.liang@linux.intel.com>, Xing Zhengjun <zhengjun.xing@linux.intel.com>, Kim Phillips <kim.phillips@amd.com>, Riccardo Mancini <rickyman7@gmail.com>, Sean Christopherson <seanjc@google.com>, shaomin Deng <dengshaomin@cdjrlc.com>, Eelco Chaudron <echaudro@redhat.com>, Athira Jajeev <atrajeev@linux.vnet.ibm.com>, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org Cc: Stephane Eranian <eranian@google.com>, Ian Rogers <irogers@google.com> Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1752143377946679694?= X-GMAIL-MSGID: =?utf-8?q?1752143377946679694?= |
Series |
build/libtraceevent resends
|
|
Message
Ian Rogers
Dec. 13, 2022, 11:26 p.m. UTC
All patches on the acme perf/core branch. Resend incremental build fix python plugin: https://lore.kernel.org/lkml/20221205225940.3079667-4-irogers@google.com/ Break apart and resend libtraceevent debug logging support: https://lore.kernel.org/linux-perf-users/20210923001024.550263-4-irogers@google.com/ Switch "#if HAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVE" to "#if MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) <= LIBTRACEEVENT_VERSION", ensuring trace-event.h is included as discussed on the mailing list. Resend removal of --group option: https://lore.kernel.org/lkml/20220707195610.303254-1-irogers@google.com/ Ian Rogers (5): perf build: Fix python/perf.so library's name perf trace-event: Add libtraceevent version tools to header libtraceevent: Increase libtraceevent logging when verbose perf trace-event: Use version check to avoid 1 define perf evlist: Remove group option. tools/perf/Documentation/perf-record.txt | 4 ---- tools/perf/Documentation/perf-top.txt | 7 ++---- tools/perf/Makefile.config | 8 +++---- tools/perf/Makefile.perf | 2 +- tools/perf/builtin-record.c | 2 -- tools/perf/builtin-stat.c | 6 ----- tools/perf/builtin-top.c | 2 -- tools/perf/builtin-trace.c | 2 +- tools/perf/tests/attr/README | 2 -- tools/perf/tests/attr/test-record-group | 22 ------------------- tools/perf/tests/attr/test-stat-group | 17 -------------- tools/perf/util/data-convert-bt.c | 3 ++- tools/perf/util/debug.c | 10 +++++++++ tools/perf/util/evlist.c | 2 +- tools/perf/util/evlist.h | 2 -- tools/perf/util/evsel.c | 2 +- tools/perf/util/python.c | 10 +-------- tools/perf/util/record.c | 7 ------ tools/perf/util/record.h | 1 - .../util/scripting-engines/trace-event-perl.c | 2 +- .../scripting-engines/trace-event-python.c | 2 +- tools/perf/util/sort.c | 3 ++- tools/perf/util/trace-event.h | 13 +++++++++++ 23 files changed, 39 insertions(+), 92 deletions(-) delete mode 100644 tools/perf/tests/attr/test-record-group delete mode 100644 tools/perf/tests/attr/test-stat-group
Comments
Em Tue, Dec 13, 2022 at 03:26:46PM -0800, Ian Rogers escreveu: > All patches on the acme perf/core branch. > > Resend incremental build fix python plugin: > https://lore.kernel.org/lkml/20221205225940.3079667-4-irogers@google.com/ > > Break apart and resend libtraceevent debug logging support: > https://lore.kernel.org/linux-perf-users/20210923001024.550263-4-irogers@google.com/ > > Switch "#if HAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVE" to "#if > MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) <= LIBTRACEEVENT_VERSION", > ensuring trace-event.h is included as discussed on the mailing list. > > Resend removal of --group option: > https://lore.kernel.org/lkml/20220707195610.303254-1-irogers@google.com/ Thanks, applied. - Arnaldo > Ian Rogers (5): > perf build: Fix python/perf.so library's name > perf trace-event: Add libtraceevent version tools to header > libtraceevent: Increase libtraceevent logging when verbose > perf trace-event: Use version check to avoid 1 define > perf evlist: Remove group option. > > tools/perf/Documentation/perf-record.txt | 4 ---- > tools/perf/Documentation/perf-top.txt | 7 ++---- > tools/perf/Makefile.config | 8 +++---- > tools/perf/Makefile.perf | 2 +- > tools/perf/builtin-record.c | 2 -- > tools/perf/builtin-stat.c | 6 ----- > tools/perf/builtin-top.c | 2 -- > tools/perf/builtin-trace.c | 2 +- > tools/perf/tests/attr/README | 2 -- > tools/perf/tests/attr/test-record-group | 22 ------------------- > tools/perf/tests/attr/test-stat-group | 17 -------------- > tools/perf/util/data-convert-bt.c | 3 ++- > tools/perf/util/debug.c | 10 +++++++++ > tools/perf/util/evlist.c | 2 +- > tools/perf/util/evlist.h | 2 -- > tools/perf/util/evsel.c | 2 +- > tools/perf/util/python.c | 10 +-------- > tools/perf/util/record.c | 7 ------ > tools/perf/util/record.h | 1 - > .../util/scripting-engines/trace-event-perl.c | 2 +- > .../scripting-engines/trace-event-python.c | 2 +- > tools/perf/util/sort.c | 3 ++- > tools/perf/util/trace-event.h | 13 +++++++++++ > 23 files changed, 39 insertions(+), 92 deletions(-) > delete mode 100644 tools/perf/tests/attr/test-record-group > delete mode 100644 tools/perf/tests/attr/test-stat-group > > -- > 2.39.0.314.g84b9a713c41-goog
Em Wed, Dec 14, 2022 at 11:22:45AM -0300, Arnaldo Carvalho de Melo escreveu: > Em Tue, Dec 13, 2022 at 03:26:46PM -0800, Ian Rogers escreveu: > > All patches on the acme perf/core branch. > > > > Resend incremental build fix python plugin: > > https://lore.kernel.org/lkml/20221205225940.3079667-4-irogers@google.com/ > > > > Break apart and resend libtraceevent debug logging support: > > https://lore.kernel.org/linux-perf-users/20210923001024.550263-4-irogers@google.com/ > > > > Switch "#if HAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVE" to "#if > > MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) <= LIBTRACEEVENT_VERSION", > > ensuring trace-event.h is included as discussed on the mailing list. > > > > Resend removal of --group option: > > https://lore.kernel.org/lkml/20220707195610.303254-1-irogers@google.com/ > > Thanks, applied. Building on arm64: /home/acme/git/perf/tools/perf/util/evsel.c: In function ‘evsel__rawptr’: /home/acme/git/perf/tools/perf/util/evsel.c:2787:65: error: operator '<=' has no right operand 2787 | #if MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) <= LIBTRACEEVENT_VERSION | ^ error: command '/usr/bin/gcc' failed with exit code 1 cp: cannot stat '/tmp/build/perf/python_ext_build/lib/perf*.so': No such file or directory make[2]: *** [Makefile.perf:651: /tmp/build/perf/python/perf.cpython-310-aarch64-linux-gnu.so] Error 1 make[2]: *** Waiting for unfinished jobs.... LD /tmp/build/perf/libbpf/staticobjs/libbpf-in.o Trying to fix... > - Arnaldo > > > > Ian Rogers (5): > > perf build: Fix python/perf.so library's name > > perf trace-event: Add libtraceevent version tools to header > > libtraceevent: Increase libtraceevent logging when verbose > > perf trace-event: Use version check to avoid 1 define > > perf evlist: Remove group option. > > > > tools/perf/Documentation/perf-record.txt | 4 ---- > > tools/perf/Documentation/perf-top.txt | 7 ++---- > > tools/perf/Makefile.config | 8 +++---- > > tools/perf/Makefile.perf | 2 +- > > tools/perf/builtin-record.c | 2 -- > > tools/perf/builtin-stat.c | 6 ----- > > tools/perf/builtin-top.c | 2 -- > > tools/perf/builtin-trace.c | 2 +- > > tools/perf/tests/attr/README | 2 -- > > tools/perf/tests/attr/test-record-group | 22 ------------------- > > tools/perf/tests/attr/test-stat-group | 17 -------------- > > tools/perf/util/data-convert-bt.c | 3 ++- > > tools/perf/util/debug.c | 10 +++++++++ > > tools/perf/util/evlist.c | 2 +- > > tools/perf/util/evlist.h | 2 -- > > tools/perf/util/evsel.c | 2 +- > > tools/perf/util/python.c | 10 +-------- > > tools/perf/util/record.c | 7 ------ > > tools/perf/util/record.h | 1 - > > .../util/scripting-engines/trace-event-perl.c | 2 +- > > .../scripting-engines/trace-event-python.c | 2 +- > > tools/perf/util/sort.c | 3 ++- > > tools/perf/util/trace-event.h | 13 +++++++++++ > > 23 files changed, 39 insertions(+), 92 deletions(-) > > delete mode 100644 tools/perf/tests/attr/test-record-group > > delete mode 100644 tools/perf/tests/attr/test-stat-group > > > > -- > > 2.39.0.314.g84b9a713c41-goog > > -- > > - Arnaldo
On Wed, Dec 14, 2022 at 10:00 AM Arnaldo Carvalho de Melo <acme@kernel.org> wrote: > > Em Wed, Dec 14, 2022 at 11:22:45AM -0300, Arnaldo Carvalho de Melo escreveu: > > Em Tue, Dec 13, 2022 at 03:26:46PM -0800, Ian Rogers escreveu: > > > All patches on the acme perf/core branch. > > > > > > Resend incremental build fix python plugin: > > > https://lore.kernel.org/lkml/20221205225940.3079667-4-irogers@google.com/ > > > > > > Break apart and resend libtraceevent debug logging support: > > > https://lore.kernel.org/linux-perf-users/20210923001024.550263-4-irogers@google.com/ > > > > > > Switch "#if HAVE_LIBTRACEEVENT_TEP_FIELD_IS_RELATIVE" to "#if > > > MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) <= LIBTRACEEVENT_VERSION", > > > ensuring trace-event.h is included as discussed on the mailing list. > > > > > > Resend removal of --group option: > > > https://lore.kernel.org/lkml/20220707195610.303254-1-irogers@google.com/ > > > > Thanks, applied. > > Building on arm64: > > /home/acme/git/perf/tools/perf/util/evsel.c: In function ‘evsel__rawptr’: > /home/acme/git/perf/tools/perf/util/evsel.c:2787:65: error: operator '<=' has no right operand > 2787 | #if MAKE_LIBTRACEEVENT_VERSION(1, 5, 0) <= LIBTRACEEVENT_VERSION > | ^ > error: command '/usr/bin/gcc' failed with exit code 1 > cp: cannot stat '/tmp/build/perf/python_ext_build/lib/perf*.so': No such file or directory > > make[2]: *** [Makefile.perf:651: /tmp/build/perf/python/perf.cpython-310-aarch64-linux-gnu.so] Error 1 > make[2]: *** Waiting for unfinished jobs.... > LD /tmp/build/perf/libbpf/staticobjs/libbpf-in.o > > Trying to fix... Thanks, I suspect the CFLAGS aren't passed through maybe, given this is the python code. Perhaps an include of util/trace-event.h is also necessary, but I thought that was already present: https://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git/tree/tools/perf/util/evsel.c?h=perf/core#n43 Thanks for digging into it, Ian > > - Arnaldo > > > > > > > Ian Rogers (5): > > > perf build: Fix python/perf.so library's name > > > perf trace-event: Add libtraceevent version tools to header > > > libtraceevent: Increase libtraceevent logging when verbose > > > perf trace-event: Use version check to avoid 1 define > > > perf evlist: Remove group option. > > > > > > tools/perf/Documentation/perf-record.txt | 4 ---- > > > tools/perf/Documentation/perf-top.txt | 7 ++---- > > > tools/perf/Makefile.config | 8 +++---- > > > tools/perf/Makefile.perf | 2 +- > > > tools/perf/builtin-record.c | 2 -- > > > tools/perf/builtin-stat.c | 6 ----- > > > tools/perf/builtin-top.c | 2 -- > > > tools/perf/builtin-trace.c | 2 +- > > > tools/perf/tests/attr/README | 2 -- > > > tools/perf/tests/attr/test-record-group | 22 ------------------- > > > tools/perf/tests/attr/test-stat-group | 17 -------------- > > > tools/perf/util/data-convert-bt.c | 3 ++- > > > tools/perf/util/debug.c | 10 +++++++++ > > > tools/perf/util/evlist.c | 2 +- > > > tools/perf/util/evlist.h | 2 -- > > > tools/perf/util/evsel.c | 2 +- > > > tools/perf/util/python.c | 10 +-------- > > > tools/perf/util/record.c | 7 ------ > > > tools/perf/util/record.h | 1 - > > > .../util/scripting-engines/trace-event-perl.c | 2 +- > > > .../scripting-engines/trace-event-python.c | 2 +- > > > tools/perf/util/sort.c | 3 ++- > > > tools/perf/util/trace-event.h | 13 +++++++++++ > > > 23 files changed, 39 insertions(+), 92 deletions(-) > > > delete mode 100644 tools/perf/tests/attr/test-record-group > > > delete mode 100644 tools/perf/tests/attr/test-stat-group > > > > > > -- > > > 2.39.0.314.g84b9a713c41-goog > > > > -- > > > > - Arnaldo > > -- > > - Arnaldo