From patchwork Fri Jan 6 14:22:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 40145 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp851536wrt; Fri, 6 Jan 2023 06:26:00 -0800 (PST) X-Google-Smtp-Source: AMrXdXvuX4iRBWhI2+nzKcaCaBNP9s6JY9jqBuMEic8jAslqxhdBydWclbD7m6ZEsEO/SNFJzAkr X-Received: by 2002:aa7:de11:0:b0:497:233d:3ef6 with SMTP id h17-20020aa7de11000000b00497233d3ef6mr1479458edv.17.1673015159934; Fri, 06 Jan 2023 06:25:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673015159; cv=none; d=google.com; s=arc-20160816; b=AhAZ9jqGcV8onbl+xfi93cQrddbT1BGA7xV7dIsXUq1nvW9Lokf8FRnEp6jm4UW2mZ P8gXeWQEWI320O4IcBrUUeSY1s2oUnjBtO3t1gxKVuLVdC8rWvUGuRlS2XUDK2K9bRBD MMXETLniVNiDZaPoHg7Ek8UXXDUyT6AGdlHKWLXFK4nGDkdF3mcbYb6Z/+fbKMsvVAmf EVN3WQJ+W9WpgAu1N9WkeHXmxcDtb741tkmgbVoTMbeLr35RdieIdzYcsfo1Syas2qwM MNQXyRwU74rTqG4xI+BuwEY+aMpT51/0oS07Y4iw04+sgtrzeKbJlNyaNwI84UIGWLtw trBQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=drPtonPSTuVhIVOqGKomit4Va8ysyklHEqPsrEsAZik=; b=UdYBFDSpzfmM4LCchs1OmPlR0MvhAy38Ww5ZOitrOM28kYIV7MOIYtjRG6Tb/L4egV xESZkQKcgzMQPqmrLBjnsAD7PXK/qLs59Jax3JSsUusbi9sUvfPUzwrzrtMfsWC+014y 4Uw3P1pYSCTS4QYy4pGratIw2xtDbTdqoFjcf7s7hN09u4VVSNda0KATBP1t19VEf9tX yUkuME7g0q87dL/kK1350J5yQ3FeHkBZ/Vw60un9uETGjIlxd9ROMk5CwTh1ZkNakVKm nrGK8bXJYuGHZTuHZM9YNzNUjsf9KmqUnTs0mGC/I77YGAdLGEyXoMoUWFZYIBLucu0U 67ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NvicM3gA; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020aa7d356000000b00485dea76f09si1605880edr.634.2023.01.06.06.25.34; Fri, 06 Jan 2023 06:25:59 -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=@kernel.org header.s=k20201202 header.b=NvicM3gA; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234769AbjAFOXt (ORCPT + 99 others); Fri, 6 Jan 2023 09:23:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234839AbjAFOX1 (ORCPT ); Fri, 6 Jan 2023 09:23:27 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C26047F44B; Fri, 6 Jan 2023 06:23:07 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 45070616FE; Fri, 6 Jan 2023 14:23:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9159C433D2; Fri, 6 Jan 2023 14:23:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673014986; bh=GLq2I201W/dvI6oHhthki9BIrq367DLSrcf0EBqIqAE=; h=From:To:Cc:Subject:Date:From; b=NvicM3gAwQf8qOAExduvANxhpvRbAxZO+Apgfsr/RIvXzjS7hZ+jEFblXH1KYZJo3 U0EP59h6rECNeneqcfOCHGin8rJ2Ra1zPNS3eZwyfOJCMNO2XQyYGNUeRrFP9cLcxZ 3u0DMm2uGFau2NAHcXbS4mjqIUswmB2FWLsHjkyQ5t6mz6bjWgmKvm2yCid0Ga41Dw d4U0FwyxV3g459s/qJ7XsIv3NQ9z9wWpvDkdsBq6qGLJc1clQJJfpVaq/FOfEwQBc5 ouxNOP8ShjdGO4/fDb7Jj77d2jyeewx3GqXumzKaMvVZWykGzaHgGRKSOfhUQeM8jr jxrP0Nd0iWrRw== From: Arnaldo Carvalho de Melo To: Linus Torvalds Cc: Ingo Molnar , Thomas Gleixner , Jiri Olsa , Namhyung Kim , Clark Williams , Kate Carcia , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Arnaldo Carvalho de Melo , =?utf-8?q?Ahelenia_Ziemia=C5=84?= =?utf-8?q?ska?= , Eric Lin , Ian Rogers , Jesus Sanchez-Palencia , Miaoqian Lin , Thomas Richter , Torsten Hilbrich , Yang Jihong , Arnaldo Carvalho de Melo Subject: [GIT PULL] perf tools fixes for v6.2: 1st batch Date: Fri, 6 Jan 2023 11:22:56 -0300 Message-Id: <20230106142256.763489-1-acme@kernel.org> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754283544729051003?= X-GMAIL-MSGID: =?utf-8?q?1754283544729051003?= Hi Linus, Please consider pulling, there are some more being tested but that should sit in linux-next/pending-fixes for a while. Please let me know if you think anything should be reworked, Best regards, - Arnaldo The following changes since commit 88603b6dc419445847923fcb7fe5080067a30f98: Linux 6.2-rc2 (2023-01-01 13:53:16 -0800) are available in the Git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux.git tags/perf-tools-fixes-for-v6.1-1-2023-01-06 for you to fetch changes up to 481028dbf1daa2808e1be06f6a865b5fe5939efc: perf tools: Fix build on uClibc systems by adding missing sys/types.h include (2023-01-04 16:44:01 -0300) ---------------------------------------------------------------- perf tools fixes for v6.2: 1st batch - Fix segfault when trying to process tracepoints present in a perf.data file and not linked with libtraceevent. - Fix build on uClibc systems by adding missing sys/types.h include, that was being obtained indirectly which stopped being the case when tools/lib/traceevent was removed. - Don't show commands in 'perf help' that depend on linking with libtraceevent when not building with that library, which is now a possibility since we no longer ship a copy in tools/lib/traceevent. - Fix failure in 'perf test' entry testing the combination of 'perf probe' user space function + 'perf record' + 'perf script' where it expects a backtrace leading to glibc's inet_pton() from 'ping' that now happens more than once with glibc 2.35 for IPv6 addreses. - Fix for the inet_pton perf test on s/390 where 'text_to_binary_address' now appears on the backtrace. - Fix build error on riscv due to missing header for 'struct perf_sample'. - Fix 'make -C tools perf_install' install variant by not propagating the 'subdir' to submakes for the 'install_headers' targets. - Fix handling of unsupported cgroup events when using BPF counters in 'perf stat'. - Count all cgroups, not just the last one when using 'perf stat --for-each-cgroup' with --bpf-counters. This makes the output using BPF counters match the output without using it, which was the intention all along, the output should be the same using --bpf-counters or not. - Fix 'perf lock contention' core dump related to not finding the "__sched_text_end" symbol on s/390. - Fix build failure when HEAD is signed: exclude the signature from the version string. - Add missing closedir() calls to in perf_data__open_dir(), plugging a fd leak. Signed-off-by: Arnaldo Carvalho de Melo ---------------------------------------------------------------- Ahelenia ZiemiaƄska (1): perf tools: Don't include signature in version strings Arnaldo Carvalho de Melo (2): perf tools: Fix segfault when trying to process tracepoints in perf.data and not linked with libtraceevent perf test record_probe_libc_inet_pton: Fix failure due to extra inet_pton() backtrace in glibc >= 2.35 Eric Lin (1): perf tools riscv: Fix build error on riscv due to missing header for 'struct perf_sample' Ian Rogers (1): perf build: Don't propagate subdir to submakes for install_headers Jesus Sanchez-Palencia (1): perf tools: Fix build on uClibc systems by adding missing sys/types.h include Miaoqian Lin (1): perf tools: Fix resources leak in perf_data__open_dir() Namhyung Kim (2): perf stat: Fix handling of unsupported cgroup events when using BPF counters perf stat: Fix handling of --for-each-cgroup with --bpf-counters to match non BPF mode Thomas Richter (2): perf lock contention: Fix core dump related to not finding the "__sched_text_end" symbol on s/390 perf test record_probe_libc_inet_pton: Fix test on s/390 where 'text_to_binary_address' now appears on the backtrace Yang Jihong (1): perf help: Use HAVE_LIBTRACEEVENT to filter out unsupported commands tools/perf/Documentation/Makefile | 2 +- tools/perf/Makefile.perf | 10 +++++----- tools/perf/arch/riscv/util/unwind-libdw.c | 2 +- tools/perf/builtin-lock.c | 2 ++ tools/perf/command-list.txt | 10 +++++----- .../tests/shell/record+probe_libc_inet_pton.sh | 3 ++- tools/perf/util/PERF-VERSION-GEN | 2 +- tools/perf/util/bpf_counter_cgroup.c | 14 +++---------- tools/perf/util/cgroup.c | 23 +++++++++++++++++----- tools/perf/util/data.c | 2 ++ tools/perf/util/generate-cmdlist.sh | 19 ++++++++++++++++-- tools/perf/util/sort.c | 12 +++++++++++ tools/perf/util/trace-event.h | 1 + 13 files changed, 70 insertions(+), 32 deletions(-)