From patchwork Wed Jan 11 17:43:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaldo Carvalho de Melo X-Patchwork-Id: 42123 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp3460100wrt; Wed, 11 Jan 2023 09:57:40 -0800 (PST) X-Google-Smtp-Source: AMrXdXveYn4iVRMX/61kkG9bEi156XCSbc1L1hyfv2ypKvN5wKkLMiFmR+3FFBC5dDqYdbm6GnP+ X-Received: by 2002:a17:906:a1d7:b0:815:8942:dde with SMTP id bx23-20020a170906a1d700b0081589420ddemr74662529ejb.23.1673459860073; Wed, 11 Jan 2023 09:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673459860; cv=none; d=google.com; s=arc-20160816; b=M8fuwJyX+6wb/wJn8W4SDhk8rxi26QqEqLBssukfG4IAGYnpvALQztSHG4IvXaRj1s /7Np6DaQa8uHFnBzHItRc6c3d6+YEUhZYKFySUr5/ai36ZAgsveGgzPtSITCLnrdjFb7 tocg+OSMSwtKXtKn3t1W8bjKZgFjKwwJjNYxIBGSbQGtS0G4nDJgG02gpbHfJLrI+8t+ 5UcL3yP2G51kEswiZAVn4/o1qfPYraRJp91AQSKkX95KBAHsXOGfGZAUn1nDs8hXhr6+ 925kk6YdPFSi2Rny/NsBHGkeeoFHT/ZIfVYEdzQvhlIkmjrii1IaQ6oJMi/gA91gxKve KPYg== 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=WXT3DZb2o/GUUYGaLCe3f7HU3WBQOzwY6rsM1ouLMwI=; b=ZsN7bGBwDMeZEmjyfU4AG/wAlHhslOFpmvfqn/ZHfx1PsjoqHTSRy9LgYBTMC6R0T/ 2wicZs+r6HNet3cnQqCjVnUjq0BttfQdBx30JemP1TwkKp30PF15LKBbjbIrPooMZlIa 5uSPlrkFEew3GiT9F372cVJ+S04O1ZaH6J0EQkxDzch38w6kSXJIa2LOd47VF4UvMYlY VFdOTNI1uqFMBXuKofXXwCVviIciPxTOw3uXGSH+hxrchEvsLL3BDk5xWkHD/eetkp/I RJG0loXOkvOvCJpv9iAN1d3n8kBgOgyRFi0rzxM9mPCxO+CWlJENtJ6ihElnJwabdq06 NG3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HR9PCFox; 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 xb13-20020a170907070d00b0084c6c0a5296si16169400ejb.134.2023.01.11.09.57.16; Wed, 11 Jan 2023 09:57:40 -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=HR9PCFox; 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 S234200AbjAKRoF (ORCPT + 99 others); Wed, 11 Jan 2023 12:44:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37858 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232271AbjAKRns (ORCPT ); Wed, 11 Jan 2023 12:43:48 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C85C1740A; Wed, 11 Jan 2023 09:43:46 -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 ams.source.kernel.org (Postfix) with ESMTPS id DA891B81BB4; Wed, 11 Jan 2023 17:43:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C7216C433EF; Wed, 11 Jan 2023 17:43:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673459023; bh=ZZwQM8Y8BQdj74nMk/ReDulPCgU+sZ0CNX/Jvg5Oms0=; h=From:To:Cc:Subject:Date:From; b=HR9PCFox+528RqyEM/DmSeUsR0WSgXloPEMDod9QrlCctn77uAztrKoLtu8TYmQYb smGwFLgF1eZxbF7B7yQMDEE1AHARheTE6DNJFVfwHnCmlmdQi/DCo+2lmMJ5YpvXj6 jK0pohXaumgz8mYAfj6BlQVepNhIQ2bluJJGwMP5ZhhVEHhsdfpX+PdwYkBSoXmdam M8GeK/5GLUhqHJcGzjLPDt6czxQlfN7Q2LMunOad3GZyPwKfY1O4MHT8Bx/mKYyDkw h8jVRuhnC7FbE8nin3SLjyiu0qEZ8aj+tGZvoTrEy62fdrDhNdxCXLheb24/FqIunK dbFg2uBsu93IQ== 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 , Adrian Hunter , Athira Jajeev , Dmitry Dolgov <9erthalion6@gmail.com>, Ian Rogers , Leo Yan , Mike Leach , Ravi Bangoria , Arnaldo Carvalho de Melo Subject: [GIT PULL] perf tools fixes for v6.2: 2nd batch Date: Wed, 11 Jan 2023 14:43:31 -0300 Message-Id: <20230111174331.984275-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?1754749846621781854?= X-GMAIL-MSGID: =?utf-8?q?1754749846621781854?= Hi Linus, Please consider pulling, Best regards, - Arnaldo The following changes since commit 1fe4fd6f5cad346e598593af36caeadc4f5d4fa9: Merge tag 'xfs-6.2-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux (2023-01-08 12:11:45 -0600) 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.2-2-2023-01-11 for you to fetch changes up to cf129830ee820f7fc90b98df193cd49d49344d09: perf auxtrace: Fix address filter duplicate symbol selection (2023-01-11 14:03:44 -0300) ---------------------------------------------------------------- perf tools fixes for v6.2: 2nd batch - Make 'perf kmem' cope with the removal of kmem:kmem_cache_alloc_node and kmem:kmalloc_node in the 11e9734bcb6a7361 ("mm/slab_common: unify NUMA and UMA version of tracepoints") commit, making sure it works with Linux >= 6.2 as well as with older kernels where those tracepoints are present. - Also make it handle the new "node" kmem:kmalloc and kmem:kmem_cache_alloc tracepoint field introduced in that same commit. - Fix hardware tracing PMU address filter duplicate symbol selection, that was preventing to match with static functions with the same name present in different object files. - Fix regression on what linux/types.h file gets used to build the "BPF prologue" 'perf test' entry, the system one lacks the fmode_t definition used in this test, so provide that type in the test itself. - Avoid build breakage with libbpf < 0.8.0 + LIBBPF_DYNAMIC=1. If the user asks for linking with the libbpf package provided by the distro, then it has to be >= 0.8.0. Using the libbpf supplied with the kernel would be a fallback in that case. - Fix the build when libbpf isn't available or explicitly disabled via NO_LIBBPF=1. - Don't try to install libtraceevent plugins as its not anymore in the kernel sources and will thus always fail. Signed-off-by: Arnaldo Carvalho de Melo ---------------------------------------------------------------- Adrian Hunter (1): perf auxtrace: Fix address filter duplicate symbol selection Arnaldo Carvalho de Melo (2): perf tools: Don't install libtraceevent plugins as its not anymore in the kernel sources perf bpf: Avoid build breakage with libbpf < 0.8.0 + LIBBPF_DYNAMIC=1 Athira Rajeev (1): perf tests bpf prologue: Fix bpf-script-test-prologue test compile issue with clang Ian Rogers (2): perf build: Properly guard libbpf includes perf build: Fix build error when NO_LIBBPF=1 Leo Yan (2): perf kmem: Support legacy tracepoints perf kmem: Support field "node" in evsel__process_alloc_event() coping with recent tracepoint restructuring tools/perf/Makefile.config | 12 ++---- tools/perf/Makefile.perf | 21 ++++++---- tools/perf/builtin-kmem.c | 65 ++++++++++++++++++++++------- tools/perf/builtin-trace.c | 2 + tools/perf/tests/bpf-script-test-prologue.c | 2 + tools/perf/tests/make | 12 ------ tools/perf/util/auxtrace.c | 2 +- tools/perf/util/bpf_counter.h | 6 +++ 8 files changed, 77 insertions(+), 45 deletions(-)