Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1850655lqo; Sun, 12 May 2024 23:19:01 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJWjB1EFMHPdxU6fLMluVRekhMtDOAEFeL64sgPVJIQMpXu3TPbYhCP8F2eOpKWrRlzZZ/xH8T+Y+iVbINawjM1PCJnK3GPBwAOPghPQ== X-Google-Smtp-Source: AGHT+IEy0lt+lELgjNNxncUknvVdWIbMqfCvO6RzHUi03e5Yaa5kExX9+6YtQc+CkT5LHRfAlwPN X-Received: by 2002:a05:6402:13d3:b0:572:b83e:e062 with SMTP id 4fb4d7f45d1cf-57332686076mr11872812a12.3.1715581140956; Sun, 12 May 2024 23:19:00 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715581140; cv=pass; d=google.com; s=arc-20160816; b=LGeNHkwnyXATiJRI2bL6WiRmWJFFhmpt/ZdoPhH0JPa/TZmsCmUPjIvn7HEoDTDK75 nZ9CVrEB42XSlcbr0qWBcUwqQwHa7NRa/2E0aB97WXUmnK4b9qq1z+5vyblCgEcPJCyg 1HhWLvL/Q/kWRUAMbp4QlidTgR3Ur/NLCML9GR2EMtTeCbeFjEpw8GjRxb6IErBf5KW7 AbylyZqvCcbCsOttg0n43NeiF/xW9EbxwAQBcR4mNBC4QMtoVHvgdKukojAhYdM4uM1m sbQ9R6B3u9DPNI6mHX20QGzMthEKB8APmGje2YDOJ2JFXt3UjOoUpptFDWzPVP7By1wv CZVg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date:sender :dkim-signature; bh=bpNCHKdi23YsbMpYSlsHEWAO9h6Qj7cZkm3c+kyT6U0=; fh=pTNRSxpJs+nMAAwDUeog2bb7WYZMaMoqdyHkMBg1xz0=; b=CGXpNyGkcqg7scWrStQWu7vmqZIBCInfryhGoydHHkXY6OqfUEWGgwwKmipCjLAHH+ uGEXByha2I0A9ZfP+4NgJYxUrwDFVY812NPVzYPXumeLKJ2grI0vUpMYv5j4O7ZAWISL JglLnyybkED9kocwrSGCH67+0lfDZOI+EBDFNabdzM2TXw33tHhQSmhGepo6Yile+xal Mou8SpgI2o85B+dHgErxDVSPHayWMMIUwxKhQ7cp3Jwgb1rparAXkZEPeEoAY4arsY4z uMwrIPkBkGmkSTK9em6OABdBy/OopJDFsYbtZEzIRJ1fDelm9HvaK7wonMkx76dWCwki s/9w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LJ4jhPM2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-177194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5733c36e566si4613209a12.567.2024.05.12.23.19.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:19:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-177194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LJ4jhPM2; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-177194-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-177194-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 84CFC1F21379 for ; Mon, 13 May 2024 06:19:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED5E81465A2; Mon, 13 May 2024 06:18:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LJ4jhPM2" Received: from mail-ej1-f46.google.com (mail-ej1-f46.google.com [209.85.218.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 712A34C81; Mon, 13 May 2024 06:18:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.46 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715581132; cv=none; b=eSuBbIwFZ5nn5MqL5lz8jCT3qHH2O8EmWU7choRIRuoU/XoPxygKjDCsysB38DiLviQpY3gs9sBI5raWHGVH9UtBEsm2KyntyUvh8kYUHjJ1uBk9kSCUylhr9DWofWnIRAg3aopaMd63CH4UJhFsiGG4RxTnUoU9edSkuUttryE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715581132; c=relaxed/simple; bh=Gk6VmF76HZLrQGn1rjBPIIo3n7MlZgoUBYdttRsR1Bw=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Y6LQqw9ZDN7SUH8+HHKEdNynNc0F+/2ysHgOsH581cs0gum1r5f9NJuHX2qCft+xaxOxKfl3/YOdfr4kTde+QxAsHrvWIPHx3O/WrfqN8+AXMVCHjgJQmWbegly4A+BfgDrHUwmanUVG8Au82rTC1by+Fy/wxYOsOsoZYBMSfc0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=LJ4jhPM2; arc=none smtp.client-ip=209.85.218.46 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f46.google.com with SMTP id a640c23a62f3a-a59a609dd3fso676299466b.0; Sun, 12 May 2024 23:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715581129; x=1716185929; darn=vger.kernel.org; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:from:to:cc:subject:date:message-id:reply-to; bh=bpNCHKdi23YsbMpYSlsHEWAO9h6Qj7cZkm3c+kyT6U0=; b=LJ4jhPM2TJ5t0AVkS4nIe6AXcXQrj/mNDw7NHhWNOK1C8U9t7AFJAOmruuhLrwK+e/ Zx2QEQqN3SkSD6EW/I8saUdpD+ezRY/ypNZwjhxy2s9RzxED0xs7bKopvFnBCinaZTRN +2kph3jtVb2s54D2OHqPqryuaR1hofmsbYtMBewy4IxOjhj3DnWb7UYGeMaSmyQKm2o4 orOy3mbkGVWJq3kZtaKXyfTJQNxo7X7TJqAPq5NlZJ8ZeD28ox5ZPEhDA40hc0DoMejQ xEq82IG4YQsNCQV5up0mZkItlFmDo4HxTGinucj35KJtDIsRl5uAgknUfu1ZJxx+xRFr nRuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715581129; x=1716185929; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=bpNCHKdi23YsbMpYSlsHEWAO9h6Qj7cZkm3c+kyT6U0=; b=g1B+G+4MIk51PC63utzcsIx0wCIJpe8TyHXgGodurAQbowYf7dU65u22g3ZqaQ7PAY 482RG7M8yydUFBFQkZZGUc12dhEze87OzgU5Mf9q8QuZ6W615KLHoi9Cd8i3hmPsKlLg M7dUsur1QfDOyMzfXVQX7uUrml/ILEm4R1jwOCnIGzR5dXw+Y/hYDEsFpveDjSDymBJr p0z/wefUBVMwFFt3coy8MJLMdzgb5/w4K5YBpKXHWeoNJfsxkNawato6okiCSJFIdb66 mmTcAWKBB1D/Sb04tiLRA6/JUY7hak9VmN7+66Ylp9+4j2hyNs0N2Hno0KGwbUpyghO9 LIFQ== X-Forwarded-Encrypted: i=1; AJvYcCUZdnonsIwNpHKdrItfAZIPAigK/pgG+cdY7V1jOhxiaHc7Bgm0M+ufhjq+ZzHS1s6JrQ3QdnTQjGonRqoxl7kCIKHLZ0xSTtnNENXkYiM1RA== X-Gm-Message-State: AOJu0Yzh9CEulg6j+nHYMLfi2EjN2NLR3fZme2NkA/uAKJsRYIDlFSZ4 WxPsHZ0xqf7sU/WZiDLsbx3GP22WSDBzTua+NaYY1fw8IpTzdYG+BAvNOm6R X-Received: by 2002:a17:906:7748:b0:a59:92b0:e0d3 with SMTP id a640c23a62f3a-a5a118c5393mr849555566b.34.1715581128347; Sun, 12 May 2024 23:18:48 -0700 (PDT) Received: from gmail.com (1F2EF402.unconfigured.pool.telekom.hu. [31.46.244.2]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a174bdfa1sm547022766b.0.2024.05.12.23.18.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 May 2024 23:18:47 -0700 (PDT) Sender: Ingo Molnar Date: Mon, 13 May 2024 08:18:45 +0200 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Arnaldo Carvalho de Melo , Jiri Olsa , Alexander Shishkin , Mark Rutland , Namhyung Kim , linux-perf-users@vger.kernel.org Subject: [GIT PULL] Performance events changes for v6.10 Message-ID: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Linus, Please pull the latest perf/core Git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git perf-core-2024-05-13 # HEAD: 854dd99b5ddc9d90e31e5f112462a5994dd31810 perf/bpf: Mark perf_event_set_bpf_handler() and perf_event_free_bpf_handler() as inline too Perf events changes for v6.10: - Combine perf and BPF for fast evalution of HW breakpoint conditions. - Add LBR capture support outside of hardware events - Trigger IO signals for watermark_wakeup - Add RAPL support for Intel Arrow Lake and Lunar Lake - Optimize frequency-throttling - Miscellaneous cleanups & fixes. Thanks, Ingo ------------------> Andrii Nakryiko (4): perf/x86/amd: Ensure amd_pmu_core_disable_all() is always inlined perf/x86/amd: Avoid taking branches before disabling LBR perf/x86/amd: Support capturing LBR from software events perf/x86/amd: Don't reject non-sampling events with configured LBR Erick Archer (1): perf/x86/rapl: Prefer struct_size() over open coded arithmetic Ingo Molnar (2): perf/bpf: Change the !CONFIG_BPF_SYSCALL stubs to static inlines perf/bpf: Mark perf_event_set_bpf_handler() and perf_event_free_bpf_handler() as inline too Kyle Huey (10): perf/bpf: Reorder bpf_overflow_handler() ahead of __perf_event_overflow() perf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members perf/bpf: Call BPF handler directly, not through overflow machinery perf/bpf: Remove unneeded uses_default_overflow_handler() perf/bpf: Allow a BPF program to suppress all sample side effects selftest/bpf: Test a perf BPF program that suppresses side effects perf: Move perf_event_fasync() to perf_event.h perf/ring_buffer: Trigger IO signals for watermark_wakeup selftests/perf_events: Test FASYNC with watermark wakeups Namhyung Kim (2): perf/core: Optimize perf_adjust_freq_unthr_context() perf/core: Reduce PMU access to adjust sample freq Zhang Rui (2): perf/x86/rapl: Add support for Intel Arrow Lake perf/x86/rapl: Add support for Intel Lunar Lake arch/arm/kernel/hw_breakpoint.c | 8 +- arch/arm64/kernel/hw_breakpoint.c | 4 +- arch/x86/events/amd/core.c | 37 ++- arch/x86/events/amd/lbr.c | 13 +- arch/x86/events/perf_event.h | 13 + arch/x86/events/rapl.c | 7 +- include/linux/perf_event.h | 37 ++- kernel/events/core.c | 273 +++++++++++---------- kernel/events/ring_buffer.c | 4 + tools/testing/selftests/bpf/prog_tests/perf_skip.c | 137 +++++++++++ tools/testing/selftests/bpf/progs/test_perf_skip.c | 15 ++ tools/testing/selftests/perf_events/.gitignore | 1 + tools/testing/selftests/perf_events/Makefile | 2 +- .../selftests/perf_events/watermark_signal.c | 146 +++++++++++ 14 files changed, 525 insertions(+), 172 deletions(-) create mode 100644 tools/testing/selftests/bpf/prog_tests/perf_skip.c create mode 100644 tools/testing/selftests/bpf/progs/test_perf_skip.c create mode 100644 tools/testing/selftests/perf_events/watermark_signal.c