Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1086461lqp; Sun, 14 Apr 2024 13:47:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmYVr7zZJRnNUAR2jm/MsphlHsSOVXVW0DIH7wGw/AWxGUFR2w/IBav36qMc0AkUy7hBV2K4WDZbsPBY+qeRI5J5HX0DYvnZEgH9Xqhw== X-Google-Smtp-Source: AGHT+IGUBa3T1amsXt/C9yBAWAfrD0Q5EmckZShPk4U7YlmlaDMCQyrAvTpD8yW5hIUBXNwN+Kfc X-Received: by 2002:aca:280f:0:b0:3c5:eeb5:c6e2 with SMTP id 15-20020aca280f000000b003c5eeb5c6e2mr9404720oix.36.1713127661181; Sun, 14 Apr 2024 13:47:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713127661; cv=pass; d=google.com; s=arc-20160816; b=qlLNAweIANY4AAWZR3Nb6kdWB8I30j+HoE6Q1k2/Rp5ZmZI7s7spo0miIrX25qNg8f 8UNP3bQktm4xKPvFnOFAuviDqWrPe0tpRwZSVAQVuJaDSBJBxw2+247oRl0m8zjg+tJ9 Y4veO86TBuNyymSXW8LJdIQPwQ8ArLLVESPo9juZTqlRZhLwlrwwwGqIZ4SGl6ng6jvZ KGGjqVvM6XMUJ52XpjKOcfUUoF0sah15VVaKs97f7+ywvFflWEbiRhovHLTUkm6cXbWR FLRyhfj6UXlwc3kjS3H+zd1qt67bCIThIuugkyNRognHOBd0xlFHz5m1+MHvVa4brnjK 85wg== 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=Kk33WvAgbOeZne4fG/MnGSoLByjT4UvbrYfIWfMtSSI=; fh=9y/kTBTAtyzQerNfP+d4gfB7uNRQC5za/MiFPn88JWI=; b=ewB8s0NB92AVT1f80PrA23I15lL6C/0lqm9kIxSxjmkeET1GXuVVpOo2gmm56X29M2 ZPdHbPP9ChOl4NqP66ozW61y8pL2wuvfwnSi7NLHVXEOBe7xN3xF0gekY4zdNXjmnX1x blK18d3Gxo3VcugIf8s1FaiFlYV2X3j1YHWih8uKlvXaYzjWBYhsT/DghIuaCFA4xmJS xifTY2vusvLVHPQPfyjjQ2c9/jGq2XVrp3q0DDoJYyJ1p3mvwMCKg8QEBCx4qv5Nn9TU goslcx9rPB5fs/p/bR/F1XGjF3Cg09A4gYiyqeFxtlNEX53Huzbh5APeFx3MQcyOUJGO FyOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SaMycIfR; 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-144401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144401-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 z14-20020ac87f8e000000b00432e64de7a5si8762640qtj.712.2024.04.14.13.47.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 13:47:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144401-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=SaMycIfR; 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-144401-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144401-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 D73811C208DC for ; Sun, 14 Apr 2024 20:47:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C277137916; Sun, 14 Apr 2024 20:47:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="SaMycIfR"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="fbSKRmT8" 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 31511136E31; 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=1713127635; cv=none; b=OT5GvJJkKvssxshhhfHe08gahELkRkwxudN3MfBszM3tfcn7jYSwImp3xR6Z+abq3l/HGuiRMCTrYEF1LHBPtseytHSO0kPk8y/aeG2/jR28CpioIcIGZVxv42ZmNRWOf6fqdmuf/g0+9M65TQNxctKgaONjSdoobdgMeI8rOBg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713127635; c=relaxed/simple; bh=j8yYjNB/lwgdtj7d5dFQqesE42JDJmZZopH+iHq3GT4=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=ZyBjl3qOeJG7ocn7wh3gJMd4+QEuz1JE1/YOa0OXbiASUbGxaVlFpoTUXGNBcfU6LKd0DnZs2/mLXIx7E1NBtTa24C3VfwojoRXmHS2IHqFp/fnmTgvpPx4OpWY3BS05SFVtESE9yTmGNxB6atR9JWlnme6lEnafO5DEnifXDCI= 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=SaMycIfR; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=fbSKRmT8; 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:11 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1713127632; 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=Kk33WvAgbOeZne4fG/MnGSoLByjT4UvbrYfIWfMtSSI=; b=SaMycIfRckIeJSYfD7r4r8LwE2ArrUMjUIk/FdPZnr7vXF1IJAshtfIBhBzxopUIiu19uL qTrWpTCnZSUc14wVMbw3A6u26t7d8m3TXPPjurVsj4kdOcZvIE7YZeE9LlMGdPzDyTy0VV s4setirnGcQpHZOTiAxRjRqUb9GUsIeOpwVe1kYIRyeyT4wvgzrzwwqPHbEKchL8F557jC MzgxankRExjXSIprJtEQ8VbIUOBAaN+NdVkbBfjarW7eKORHu85V9+47j2dpvVGDKZU6V6 X+7FWjFZnHU3NqlXcbdyTshiWkhWS4RlTel18L3KmtFkC750eViyR4RlKGWxeQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1713127632; 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=Kk33WvAgbOeZne4fG/MnGSoLByjT4UvbrYfIWfMtSSI=; b=fbSKRmT8TxCvy5hemdO42hFz6epxjdeF3Q3/SxedpxDDCxI3fljhvRn05JwH6z9hFDb8ag mczSPa/k0YymbjDA== 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: Move perf_event_fasync() to perf_event.h Cc: Kyle Huey , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240413141618.4160-2-khuey@kylehuey.com> References: <20240413141618.4160-2-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: <171312763167.10875.45937385096988617.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: 4a013980666857c1eb2df6a2137817caa21d38a6 Gitweb: https://git.kernel.org/tip/4a013980666857c1eb2df6a2137817caa21d38a6 Author: Kyle Huey AuthorDate: Sat, 13 Apr 2024 07:16:16 -07:00 Committer: Ingo Molnar CommitterDate: Sun, 14 Apr 2024 22:26:32 +02:00 perf: Move perf_event_fasync() to perf_event.h This will allow it to be called from perf_output_wakeup(). Signed-off-by: Kyle Huey Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20240413141618.4160-2-khuey@kylehuey.com --- include/linux/perf_event.h | 8 ++++++++ kernel/events/core.c | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index d5ff0c1..a5304ae 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -1686,6 +1686,14 @@ perf_event_addr_filters(struct perf_event *event) return ifh; } +static inline struct fasync_struct **perf_event_fasync(struct perf_event *event) +{ + /* Only the parent has fasync state */ + if (event->parent) + event = event->parent; + return &event->fasync; +} + extern void perf_event_addr_filters_sync(struct perf_event *event); extern void perf_report_aux_output_id(struct perf_event *event, u64 hw_id); diff --git a/kernel/events/core.c b/kernel/events/core.c index 6708c11..da9d9a1 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -6703,14 +6703,6 @@ static const struct file_operations perf_fops = { * to user-space before waking everybody up. */ -static inline struct fasync_struct **perf_event_fasync(struct perf_event *event) -{ - /* only the parent has fasync state */ - if (event->parent) - event = event->parent; - return &event->fasync; -} - void perf_event_wakeup(struct perf_event *event) { ring_buffer_wakeup(event);