Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp39199lql; Fri, 12 Apr 2024 03:04:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUvFUzNVMiIVszwmZ9t146V6glmynTegi3SDexwJJlFtkptPTkhtOIfBRp1RD5dX3zfZ4iBrTW35nWQDKU9nwimlHPYz0nJCMsdMG+4Zw== X-Google-Smtp-Source: AGHT+IGchkFaGAks5rNzhpeabXOR9dkFcHxqTAW2JJv4j6mkewmFbi2snaWOftDlhG7pXWLh+y1+ X-Received: by 2002:a17:907:7283:b0:a52:320a:632f with SMTP id dt3-20020a170907728300b00a52320a632fmr1346373ejc.27.1712916271309; Fri, 12 Apr 2024 03:04:31 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712916271; cv=pass; d=google.com; s=arc-20160816; b=0+v0LP8M1B48AAoz8YwXpTWwEIcGLlG7lWYfvT22Jk49ZNT6a9moULEjruvZu6Mn+x xrq+anWAaHWPv2Nc+SsjvXp5IB/CGGmKwpIFTsnutNbASImLp572JNarujBe3Q5oj8mN PwUBi6Tu9lEqLW/EVF03jAfkdWblj0RnZhdjMRAO60IF83c3IQ/FkadzcExsXj7vgzBP z/Wy4tAp7A3Omltpbvzh4qaatV8+7ZmttKohWak+syFEkah7tpdBcstKeTqSAfaAcivN cFRTrKm3u1mHYjZ6l0Dz93F1A+iu0/D3xLxXTJJvIPVqvxYtBvhfu1ILSmFbC5soIVA5 TKow== 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=4CrUIsikDc930c3uKYQLq7h6pHpykCaDJGjbMGxQ6OU=; fh=6tFozPR/Kqr3ACU66FZF3+NiFNuRkfOL7BuTWAytnqs=; b=wfpuvfASRC1gz0Og7RdT0tfq5Ag7JW+2q+IxD9fkoycYy4AITyKiOy6a94BWdFJYpE Y4k/k/JPpNrAQwK0g1f40QScKdsCjTQrrPz1ISUQuf+s4kmRpfFQnu07Df3E88SMu01l 3CFCSm/S3Q3XW3B2Md0GJsGpze+T4YoLIzzmLW5nH75aXEi4C9I5VJDtNB8wVRwHamjn z6ini3ZLtjllwuZG3ecD9HqLBMVj2DgZXXN2FpeIvkBEbPNjUCNZ48owy/LHJWK1cmoz XK5r+m99+HTKt4ddXx+rHocdSLcLaUv4sByKAcSQqm/uWmQtNiPDLLlutfe45+CXHa5Y GQag==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ox3vR40S; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=qvzhoytv; 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-142460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142460-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id qa38-20020a17090786a600b00a521459d2casi1631702ejc.831.2024.04.12.03.04.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 03:04:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=ox3vR40S; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=qvzhoytv; 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-142460-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142460-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DE2931F22E86 for ; Fri, 12 Apr 2024 10:04:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5ABEE54FA2; Fri, 12 Apr 2024 10:03:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ox3vR40S"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="qvzhoytv" 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 BC93A53815; Fri, 12 Apr 2024 10:03:28 +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=1712916210; cv=none; b=uis+/Wx2EnZfwJig3A7K89n4cUt1RbqR9JMJM+goS1HQ1kUAgmS4q5G5SDy1XD6XLBcS9iQHU0vNKJEHthd9iyFQLVSzkLbRO/qaRJ0wbKGjoD6VvH9krtcSr5nLj3IUFjtL4hYrvn8CnPCKxHPycdHzZsZwAbP7TWKksur7Wo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712916210; c=relaxed/simple; bh=lCNee1828QqqQR3hshc5fVcZzrHDapC+fJ9N5c+1IIs=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=HpvUbtYo2gc6Jcr+H94HVtJSRFd1HsLqcnWbr8meFFZDeygdWtLbipkBOYueV/XdBMeozi6ychuWjdwl3lekCEdxQQiVAVCnEx26653loQYhYZtWNk456XAf3RsIykFrQqk+91PMyR7MIbdNC/2TpbbLzKf1UOPMnqKfsNTIHuQ= 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=ox3vR40S; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=qvzhoytv; 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: Fri, 12 Apr 2024 10:03:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1712916206; 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=4CrUIsikDc930c3uKYQLq7h6pHpykCaDJGjbMGxQ6OU=; b=ox3vR40SrhvJ6BRFN/O2LtQL6g3joQb7Jyf1fsbgFbnYSjsRcG6Dn4jpQhgEgAGE895/uk 0tIGRL9lgAZgoqkvAmV/ldTDB5R5nKYTzcS89QqvNRkRNenBjWpHqhy5JDUG/CSnGDjvtJ 5R0QO/gUAVTy7f+Lrkjg++bkmzth3lJ/SKyP7P5aRg3UvEXGXRxVdDhw837oH1AtIyPT1J 2rItxMhBxiMrsDNbsOoyit2skUYGmoMFKNX0hnFMj9UoS/h/3Wd1r/A59RQkEtM2C2Qs3p rvZpjQSHncdtVqZzqgUVDErkIIRPQfKxR6CibFjNIZQHQxDD1oaN+YEPV+m4bQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1712916206; 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=4CrUIsikDc930c3uKYQLq7h6pHpykCaDJGjbMGxQ6OU=; b=qvzhoytvg0bIKxWOvWyE5nMN4YLPr+9gnsyDPtjUFoXoCasCJBMHabz5pLh85m2N9yKXLU 5IQ345QN/NfLv9Aw== 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/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members Cc: Ingo Molnar , Kyle Huey , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20240412015019.7060-4-khuey@kylehuey.com> References: <20240412015019.7060-4-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: <171291620574.10875.5995937196604251484.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: 14e40a9578b70cc5323e55f61292a7e021f6037c Gitweb: https://git.kernel.org/tip/14e40a9578b70cc5323e55f61292a7e021f6037c Author: Kyle Huey AuthorDate: Thu, 11 Apr 2024 18:50:15 -07:00 Committer: Ingo Molnar CommitterDate: Fri, 12 Apr 2024 11:49:49 +02:00 perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members This will allow __perf_event_overflow() (which is independent of CONFIG_BPF_SYSCALL) to use struct perf_event's prog to decide whether to call bpf_overflow_handler(). Suggested-by: Ingo Molnar Signed-off-by: Kyle Huey Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20240412015019.7060-4-khuey@kylehuey.com --- include/linux/perf_event.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index 3e33b36..50e01db 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -809,11 +809,9 @@ struct perf_event { u64 (*clock)(void); perf_overflow_handler_t overflow_handler; void *overflow_handler_context; -#ifdef CONFIG_BPF_SYSCALL perf_overflow_handler_t orig_overflow_handler; struct bpf_prog *prog; u64 bpf_cookie; -#endif #ifdef CONFIG_EVENT_TRACING struct trace_event_call *tp_event;