Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1086425lqp; Sun, 14 Apr 2024 13:47:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXj0tjd2e1ExSiGAjrCcMks2UfbpSklyfaEL8P/hZ3Kyr+hZnmZuqrjwZaK9WmffuVSWNQWJUQeo3+lMpmH4MHwZ/K21yZdYQhPAuM+oQ== X-Google-Smtp-Source: AGHT+IHO0LsBy30wsfbo/doCdQDuj4mauSYjQ19g4vQ6N1NrQUP5tBA6ySk1A87zK7rYRAjWLlq8 X-Received: by 2002:a05:6358:9807:b0:186:1d2a:a467 with SMTP id y7-20020a056358980700b001861d2aa467mr9189872rwa.22.1713127650673; Sun, 14 Apr 2024 13:47:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713127650; cv=pass; d=google.com; s=arc-20160816; b=HK0TqAr1hA3qYuPrCHAMhMaT8xuIupQjupdusqZANModeiH/Hf80ZGI2E9uwLGNeNs MUX5yu46TBFRTi0j4YMA+2q/pbuAPTjhOUmTVIMtQAX2gCao3OlVZIznU7nlmihoir39 njq9p4xz07BWVf10/XDkqz6XhYN5tTK+b40lZMFt4/izX7zEjHLnSoea4R6mdSNls+OE i+yOmWd5Htg9crPpXkGuwwbnWvyE6gCXVCUAM/ayGLNLiwZDXoESttfZzoR1KC+QJ1hj t/An7URnCa1iTdUb9cvEeIIuVc2wUG8JDWvK6xZEA/q2+VksT0dcMQ0lJU7WUlsPXDEq 0i7A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:precedence:robot-unsubscribe:robot-id :message-id:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:references:in-reply-to:cc:subject:to:reply-to:sender :from:dkim-signature:dkim-signature:date; bh=EjIJ3DkzzkjR8BKk0uV8rpRhAkpgORCuuMkujBl6a5U=; fh=9y/kTBTAtyzQerNfP+d4gfB7uNRQC5za/MiFPn88JWI=; b=WWHQEfmQi9wHXklssH7spl27a6E/n7pxdVSx4dSnPa1CLUbXmN+8itDFpYYdfYCl3E M/8mXjfZqgYItlVEuEKtixDEb6a1xuDyfbss/yQ4dogumuElsU2PvGRXVKvfKdYIfhac 60gJ63LRLMJD/iLURB6JYbZXn0Jr2fQJYSqOBSK3tlmE35t4Hebiua87kls9SSI2WC/5 5n+g955Ip63CJEi99hFWv3Gf+2Q38nc3/xqKJeKY7p7hwjzwHnnRlJV9tPzA9FkMedK4 UOb2o1jLTBZhOsZN6xTrYhqzA7VE8fdXBLpMm9LEh71qzztZw08DDA+k0BwdQT0GVJYh 6EHQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LT3xvCsu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-144400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id et14-20020a056214176e00b0069b304f19e5si8328910qvb.508.2024.04.14.13.47.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 13:47:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=LT3xvCsu; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-144400-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144400-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 64F571C20DAA for ; Sun, 14 Apr 2024 20:47:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 76A05137766; Sun, 14 Apr 2024 20:47:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="LT3xvCsu"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="zpzPM8gB" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 66646136985; Sun, 14 Apr 2024 20:47:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713127634; cv=none; b=BjhP9gpNe61k5ag4NGJcMf6pfChS4dBiHpdyi5QRozxJFD55qPkaz6h0Bmwik9a7MnofAIfs8avB6w6+7uUb1EraSP3Qr7XwBakBTdYdVZ+vnKoAIHwHRieVwLxZz/dmKvwQlWvKi5iCKYRJ7izsfuzvvZNfkA1esaHPQ076pog= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713127634; c=relaxed/simple; bh=x+Ak8cEMnEs0r5HJV4MBanw21DT0LmnuS2x6w/wIPOw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=hctcMvRiDmGmVfuR4W+qCFBKhwVb/DhV6xqkPA1GSGc89PhG2PX9wCakE32oPkB/6TDr/TKKFE09Lxai6TI6aGwCTDF+O+yUiHjxgobrdlnavp+0rzRX15D19g0jCKYL6hjPZfHjK5QyurgIzgyov9QrxfUv09L7Ceg+bq7qHQU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=LT3xvCsu; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=zpzPM8gB; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Date: Sun, 14 Apr 2024 20:47:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713127631; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EjIJ3DkzzkjR8BKk0uV8rpRhAkpgORCuuMkujBl6a5U=; b=LT3xvCsuay9ZzD0WZQzjvEVk+ZDxgwKShl0vDSiGH5OlBxSgDLwqNFCHaFA11wyNTGDaKA Sjyx4bLYqie7m+J/syxpUuX6W7hyUvWyP5U15LUuL9shr3ZHoFmyGSfza8gjgWbYf1ZSDX ncKP37KJBAWNMYnK8UXnGk4FeZwH74g++kwCS7C/HprcIfrHLlRTZjQC51BHbggNQNqiCt O8iyEAKwsX5xueOBrXGDIT5m89yBnNOXOX3t+lBaBoK5DUWe/w4C1oapHOF64YLB47oJ0d iywjVmTFhLmx0vdcMv3Kv/eNEAsl5DAcylYbKckIHWBtO0rL9VOvT/Cy6zJAqw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713127631; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=EjIJ3DkzzkjR8BKk0uV8rpRhAkpgORCuuMkujBl6a5U=; b=zpzPM8gBXjKUemYAYHOwBhcZzYH7cz1FyEQ7n0Y+scXaGI4GGBAsXTiDrrph850Ufm5Yw8 MO/t0oBaKTMWn+Ag== From: "tip-bot2 for Kyle Huey" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: perf/core] perf/ring_buffer: Trigger IO signals for watermark_wakeup Cc: Kyle Huey , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240413141618.4160-3-khuey@kylehuey.com> References: <20240413141618.4160-3-khuey@kylehuey.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <171312763097.10875.3668318921597821479.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit The following commit has been merged into the perf/core branch of tip: Commit-ID: fd20bb51ed3913e0d25085eb79e8c0babfb4ee28 Gitweb: https://git.kernel.org/tip/fd20bb51ed3913e0d25085eb79e8c0babfb4ee28 Author: Kyle Huey AuthorDate: Sat, 13 Apr 2024 07:16:18 -07:00 Committer: Ingo Molnar CommitterDate: Sun, 14 Apr 2024 22:26:32 +02:00 perf/ring_buffer: Trigger IO signals for watermark_wakeup perf_output_wakeup() already marks the perf event fd available for polling. Trigger IO signals with FASYNC too. Signed-off-by: Kyle Huey Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20240413141618.4160-3-khuey@kylehuey.com --- kernel/events/ring_buffer.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kernel/events/ring_buffer.c b/kernel/events/ring_buffer.c index 60ed43d..4013408 100644 --- a/kernel/events/ring_buffer.c +++ b/kernel/events/ring_buffer.c @@ -22,6 +22,10 @@ static void perf_output_wakeup(struct perf_output_handle *handle) atomic_set(&handle->rb->poll, EPOLLIN); handle->event->pending_wakeup = 1; + + if (*perf_event_fasync(handle->event) && !handle->event->pending_kill) + handle->event->pending_kill = POLL_IN; + irq_work_queue(&handle->event->pending_irq); }