From patchwork Wed Oct 26 20:44:43 2022 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: 11441 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp476396wru; Wed, 26 Oct 2022 13:46:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5JtEfLbOqq5k5u1pP6LXE14hnzuXAK+klZA8KEd4iDj5dHlZ0WiVpC6vIcDWWaAa73D68K X-Received: by 2002:a17:907:d10:b0:79a:a1fe:8be5 with SMTP id gn16-20020a1709070d1000b0079aa1fe8be5mr25991097ejc.125.1666817216563; Wed, 26 Oct 2022 13:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666817216; cv=none; d=google.com; s=arc-20160816; b=lXyB5viz+aF+l9f4HJpzML+LKS/dEed/7ZfOBmNbtIrLNFOmoIoZ26QQWFXS9Nyj12 RfejQ0bR6bRyP4cp+WGAsvcNewjBxxUBWBh8+tG3qAn3kETU1aXwToGXGwvhdapgrDr5 rdSzH5/BV4vtCDsxEDHhW2+dr9NzuX2Nl69GfX3F2HwrcnOGX+KE5uxMWJbEhAOygjVn CA/GGXepCyqodS58AdV1OSedhpmsHu110wKmLL4VamIm1CmMosGPsbaQnbulRwv7QGx0 jBb3WIRss8A+eKo6+gW7U5lgXZmf4BalCaLtCaHDrsIHjj+VROSd0hH/5oziXSI6KJc1 Q6lA== 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=pPJrbiXdM2EfMPvSC7Fc88lNewdh+taHkTpJ3AW/c9Q=; b=GD0rPAESyLQrlXnVPbG779ffXGHLObRR8Mv9PmxL19WFiybzml+WH6Y/x7TCJamBes 1dyK4U8irfdC5G4NlT8AvjES81yG0ITdvU0+SE5ZZslPPo7PZ2kxqM8ZE5TDvRwJPP1n d6Y/f1mvs/WgZVchlwsRSRqUE/CN5J1fqExJhIgS5z+Fsu7fppHuc9dkU4vel9gmOw+Z RfiBjjPoKfXvv8Jv4A68QzkTjLTaMxVM/v3K73FOegQSlEqLGWqO+UZwhExv5gX/koLK by8K/drIt31RUSuokaXwLq7QV73dH5ZgC5WIuU2BNbgxe1Dp99UPW1MgZxmLkA2T0nTV wc0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="dDRTXJ/R"; 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 i18-20020a05640242d200b004616aff8436si8796097edc.83.2022.10.26.13.46.28; Wed, 26 Oct 2022 13:46:56 -0700 (PDT) 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="dDRTXJ/R"; 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 S233898AbiJZUo5 (ORCPT + 99 others); Wed, 26 Oct 2022 16:44:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234154AbiJZUoy (ORCPT ); Wed, 26 Oct 2022 16:44:54 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A450F1A82B; Wed, 26 Oct 2022 13:44:52 -0700 (PDT) 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 4A51F620C7; Wed, 26 Oct 2022 20:44:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2257EC433C1; Wed, 26 Oct 2022 20:44:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666817091; bh=2oVA+EsmgbKLpSEn7D0ZujUs5MGueNylhy9NyCfNoPk=; h=From:To:Cc:Subject:Date:From; b=dDRTXJ/RZpTPwe/BNHWamXr/pylxaEJcvuSHy5HPgWT1hRf24iwAbKk0RAijZ/kyE sBVWnSkDQkUAkJGjlajYU9HB8LS8MfiNQG0kA3TJQylpv3SkGdGhzJajohtyljT03B XtKTx+OuTOct0MYx3mOFyA0gX2Wc4vmKMs2VYbk01QXTUM2GbWCzTd16GEeDZfJDvo kvYbmVXEiW7kkSl/lvKHPgRFppFIUlvGLPzZwu7bGEvSSXdB7QFIx/4PK++/qGDT5C qd+GGoYJGaVjtIKHMI9oTr5Zy93UcOo6Ga9sAJtqf3rPTgWIVpQow1yxbqEHUvTrHV L4Ezs0T8kh5Ig== 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 , Christian Borntraeger , Greg Thelen , Ian Rogers , Kajol Jain , Shang XiaoJing , Sven Schnelle , Thomas Richter , Arnaldo Carvalho de Melo Subject: [GIT PULL] perf tools fixes for v6.1: 1st batch Date: Wed, 26 Oct 2022 17:44:43 -0300 Message-Id: <20221026204443.158004-1-acme@kernel.org> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 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,URIBL_BLOCKED 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?1747784529701852427?= X-GMAIL-MSGID: =?utf-8?q?1747784529701852427?= Hi Linus, Please consider pulling, Best regards, - Arnaldo The following changes since commit 4dc12f37a8e98e1dca5521c14625c869537b50b6: Merge tag 'platform-drivers-x86-v6.1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 (2022-10-25 12:05:08 -0700) 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-2022-10-26 for you to fetch changes up to e9229d5b6254a75291536f582652c599957344d2: perf vendor events arm64: Fix incorrect Hisi hip08 L3 metrics (2022-10-26 11:01:56 -0300) ---------------------------------------------------------------- perf tools fixes for v6.1: 1st batch - Fix some aspects of building with an older (than the one in the kernel sources) libbpf present in a distro, when building with LIBBPF_DYNAMIC=1. - Fix errno setting races with event_fd and the signal handler in 'perf record'. - Fix Power10 hv-24x7 metric events when some events may have a zero count based on system configuration. - Do not fail Intel-PT misc test w/o libpython, just skip it. - Fix incorrect arm64 Hisi hip08 L3 metrics (IF_BP_MISP_BR_RET, IF_BP_MISP_BR_RET, IF_BP_MISP_BR_BL) due to mistakes in the documentation used to generate the JSON files for these metrics. - Fix auxtrace (Intel PT, ARM Coresight) address filter symbol name match for modules, we need to skip the module name. - Sync copies of files with the kernel sources, including ppc syscall tables and assorted headers, some resulting in tools being able to decode new network protocols (IPPROTO_L2TP) and statx masks (STATX_DIOALIGN). - Fix PMU name pai_crypto in the vendor events file (JSON) for s390. - Fix man page build wrt perf-arm-coresight.txt as the build process assumes files starting with 'perf-' are man pages, and this file isn't one. Signed-off-by: Arnaldo Carvalho de Melo ---------------------------------------------------------------- Adrian Hunter (2): perf docs: Fix man page build wrt perf-arm-coresight.txt perf auxtrace: Fix address filter symbol name match for modules Arnaldo Carvalho de Melo (10): tools headers UAPI: Sync powerpc syscall tables with the kernel sources perf bpf: Fix build with libbpf 0.7.0 by adding prototype for bpf_load_program() perf bpf: Fix build with libbpf 0.7.0 by checking if bpf_program__set_insns() is available tools headers arm64: Sync arm64's cputype.h with the kernel sources tools headers: Update the copy of x86's memcpy_64.S used in 'perf bench' tools headers uapi: Update linux/in.h copy tools include UAPI: Sync sound/asound.h copy with the kernel sources tools headers uapi: Sync linux/stat.h with the kernel sources tools headers cpufeatures: Sync with the kernel sources tools headers UAPI: Sync linux/perf_event.h with the kernel sources Ian Rogers (1): perf record: Fix event fd races Kajol Jain (1): perf vendor events power10: Fix hv-24x7 metric events Namhyung Kim (1): perf test: Do not fail Intel-PT misc test w/o libpython Shang XiaoJing (1): perf vendor events arm64: Fix incorrect Hisi hip08 L3 metrics Thomas Richter (1): perf list: Fix PMU name pai_crypto in perf list on s390 tools/arch/arm64/include/asm/cputype.h | 4 ++ tools/arch/x86/include/asm/cpufeatures.h | 2 +- tools/arch/x86/lib/memcpy_64.S | 2 +- tools/build/Makefile.feature | 1 + tools/build/feature/Makefile | 4 ++ .../feature/test-libbpf-bpf_program__set_insns.c | 8 +++ tools/include/uapi/linux/in.h | 22 +++---- tools/include/uapi/linux/perf_event.h | 27 +++++--- tools/include/uapi/linux/stat.h | 4 +- tools/include/uapi/sound/asound.h | 16 ----- .../{perf-arm-coresight.txt => arm-coresight.txt} | 0 tools/perf/Makefile.config | 5 ++ tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 16 +++-- tools/perf/builtin-record.c | 41 +++++++----- tools/perf/check-headers.sh | 2 +- .../arch/arm64/hisilicon/hip08/metrics.json | 6 +- .../arch/powerpc/power10/nest_metrics.json | 72 +++++++++++----------- .../arch/s390/cf_z16/{pai.json => pai_crypto.json} | 0 tools/perf/tests/shell/test_intel_pt.sh | 6 ++ tools/perf/trace/beauty/statx.c | 1 + tools/perf/util/auxtrace.c | 10 ++- tools/perf/util/bpf-event.c | 5 ++ tools/perf/util/bpf-loader.c | 18 ++++++ tools/perf/util/include/linux/linkage.h | 13 ++++ 24 files changed, 181 insertions(+), 104 deletions(-) create mode 100644 tools/build/feature/test-libbpf-bpf_program__set_insns.c rename tools/perf/Documentation/{perf-arm-coresight.txt => arm-coresight.txt} (100%) rename tools/perf/pmu-events/arch/s390/cf_z16/{pai.json => pai_crypto.json} (100%)