Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp170960lqn; Thu, 11 Apr 2024 18:51:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgV8Rk7ygvCg/83HZtT4OOiteczxIXl3GrUFllldjYDtN2ahsRZuxw1DWxBueZRbDZWvRYS2h7yquZ/0pTekwrkGu7RAJ7FeS52EnbPg== X-Google-Smtp-Source: AGHT+IF14Q6+SS49kVdRomCZRBU+1TwqdDE1+/35QseS9VGFMvnLzk3eq4awZm/+oqvReSffmble X-Received: by 2002:a17:907:869e:b0:a46:a1d0:8451 with SMTP id qa30-20020a170907869e00b00a46a1d08451mr1163756ejc.16.1712886688482; Thu, 11 Apr 2024 18:51:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712886688; cv=pass; d=google.com; s=arc-20160816; b=hHMHwXDKRwwlCnFwh3UD4artppXRfsRwBGqPETK+GkNfsX8Tc2PPxHrGyEkrsdv5Xy dY+w2q8bZNp7fF8Ae9vRSmuxe2PFafhRZdFpxR+kHX6r3dqdfEKyJhrmlKkz9FNjENEJ w5uHXWHe0IoMJ3UIZhbkYfyM/eviSXJXJ2jEU46kGf6rAanxSCcgUWNGz8wH+P3FuPHr cznA8wwHVhhyx5ShKkBTk/JDNPv5k/IG0CLq5YJOuNA7YSNY7Ozxd/d6eQKkEjC2QgES I5Gewg8NKwvBQKQqqJ0LKYQ7da3bji27PGd4f1bfGnPiP7Zi/VYIV6M/Lra/2PrNqdm+ 4dNQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=aQsjAVDSJojOvZcYxeh0Pu2aG5e5UAQY3ALs9BYs2YU=; fh=/RDuC/lAl+V86nddooJECStxFNr1wys8oY2wI7v8svc=; b=pJt3YXJg7MPrspvbl0DhnTf1phE0CXcCgL0zoPlj6dbpzVYRkb9CpBjIiCCCt82C6J uMvtkxqCnAGdAkubARTotB27i2pbA76XvqGTCw4QU+svspg5N5JFMepXA14f6neuuDex lMMJ80arY9E4YessHrO8WnuhzFH+q6U0uprd5ES+eLCXakYas+Xl+dfgdkEH8vR4l9Ty I1nd0ODGmu8egceI9Wr0d/EphOPPZ08/7C06QR30gJzLWRx4NBWUxE/IRMbEL9cbxmyR 8NbCJfN4APyYYCBT/hwkufbgOnzqnKZgmwa0gXpBx+WJh2BV8NmApidaUSi6WzOVMYQr kPWQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kylehuey.com header.s=google header.b=ikZxtLYP; arc=pass (i=1 spf=pass spfdomain=kylehuey.com dkim=pass dkdomain=kylehuey.com); spf=pass (google.com: domain of linux-kernel+bounces-141783-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141783-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lg19-20020a170906f89300b00a51e004de3csi1230175ejb.797.2024.04.11.18.51.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 18:51:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141783-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=@kylehuey.com header.s=google header.b=ikZxtLYP; arc=pass (i=1 spf=pass spfdomain=kylehuey.com dkim=pass dkdomain=kylehuey.com); spf=pass (google.com: domain of linux-kernel+bounces-141783-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141783-linux.lists.archive=gmail.com@vger.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 3C0E01F22409 for ; Fri, 12 Apr 2024 01:51:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CA73F168BD; Fri, 12 Apr 2024 01:50:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kylehuey.com header.i=@kylehuey.com header.b="ikZxtLYP" Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) (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 C22C113FEE for ; Fri, 12 Apr 2024 01:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712886654; cv=none; b=hWQDzaEm4do4mSlUU4i/W0vmnnICV1kWgF0PBiJ9pj3f9pwXkcJv7py6eHrK8RBg6JNpRCx97dC6IkO1YWaM3a2gBb3XilZrPyuwQdUuJmmOBsttyXEViH+Dw5xWY62B6WDV8Kwi7+Qs/DistRip0wnBqWeBv64iwX5DqfBp9JA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712886654; c=relaxed/simple; bh=mqvWJPjJTCHg1USd6XVsQJr18Mdq8CtI+8+xAlWcLkc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gZaiHe78b7xljmwBXAscLmPeefquomEIBqIGLcpwt4GK/9DXMxNac4Mjb2TaDhqtJ0cdabJpr7vjtfAfSSXoeksevJTzysTlZqKlK4z60U6kl8U0U3LlYmD/XGg1DVnvlWjJTM+drNwEUmHfxHO7ItUF7X2UY2XSQVjIp1bEClA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylehuey.com; spf=pass smtp.mailfrom=kylehuey.com; dkim=pass (2048-bit key) header.d=kylehuey.com header.i=@kylehuey.com header.b=ikZxtLYP; arc=none smtp.client-ip=209.85.222.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kylehuey.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kylehuey.com Received: by mail-qk1-f177.google.com with SMTP id af79cd13be357-78d777d7d1fso23518785a.1 for ; Thu, 11 Apr 2024 18:50:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kylehuey.com; s=google; t=1712886652; x=1713491452; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aQsjAVDSJojOvZcYxeh0Pu2aG5e5UAQY3ALs9BYs2YU=; b=ikZxtLYPc50oIz/X4NEG7KZwqzRruUor+I3VOuDCfG1LQyrc5eylNrOuhZSfmSHmAc am3oTb/lwx3Jy6pqHyzqgcZfOwSkwSbeGQex0IwdoOT4Kt6dbEVbigxJTP7RF3khhV0I 17fNqUWNiycdyHmG0bKl0Keqnqw+5Tc7G+k6rsLoJdlBuT0zmfU0DjBrMYAAA5Lrpglz l/cDG6eWN7C2FIUjo5yOr1CznpuXnDd6ImjaEGKYf66XxFnVXfc2oV6BRvzJpCWDMobG Af7OOslT8s9085vEGyCOAduaWwbVuKC+1AGlV3iSK6iA5dt1gegimT+XMjesqDuym9+u MQ+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712886652; x=1713491452; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aQsjAVDSJojOvZcYxeh0Pu2aG5e5UAQY3ALs9BYs2YU=; b=RgBX/D/0LQ25Zapck7z2mSJq11qU+BeEADUOxYCw3gu533DO6KSOdRJ5q72fkxsJ6L UUJY5Y8HyucJmJiXIu+qN0XbwiZMHEhU0xn9Hlc4ppwCjNGc2v6U+zRz4RB8NlX4oxsY aSK0cUpqqSxnn7CF12ZK33W2ALNFqu2oDX5dTb10IpvefpJfLG9PH0jvYpb8jcMa5l99 tIfaWbNI9qHWCgGhW+CxDeAngV4ucL8Njt3IZUdP+qWkWz9rLZgCqMmicUoiZx8LGaxh dXJQ5P7Ya+As113zHV9QEhZ9gFcravvCyiZmQqjKmgtdCZLKDE1OWBMXtbjparISjFMl UiGg== X-Forwarded-Encrypted: i=1; AJvYcCWiNE3SpGvhAGHmMLgLt4+VOlbE4i3zfMmoBOQFUh40YZnebfPFPlcOWdSVSkn0fW0tWoDgxY6Pu0DeMorZSi0cL8keFDqy4T6GBPR6 X-Gm-Message-State: AOJu0Yw/C90PV5JzLj+0ti4HGstiMUhJVvRz0Iu/p+rzxNpfVVcxlW+s +IJnWImIj6DJsMkAtoiA5sWPq36+SPsgX7wA3PIoDbEeETyifvmZMs+y2VqS3g== X-Received: by 2002:a05:620a:15ac:b0:78d:3b3f:50cd with SMTP id f12-20020a05620a15ac00b0078d3b3f50cdmr1344767qkk.65.1712886651836; Thu, 11 Apr 2024 18:50:51 -0700 (PDT) Received: from ip-172-31-44-15.us-east-2.compute.internal (ec2-52-15-100-147.us-east-2.compute.amazonaws.com. [52.15.100.147]) by smtp.googlemail.com with ESMTPSA id f10-20020a05620a15aa00b0078d76c1178esm1756677qkk.119.2024.04.11.18.50.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 18:50:51 -0700 (PDT) From: Kyle Huey X-Google-Original-From: Kyle Huey To: Kyle Huey , linux-kernel@vger.kernel.org, Andrii Nakryiko , Jiri Olsa , Namhyung Kim , Marco Elver , Yonghong Song , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Cc: Robert O'Callahan , bpf@vger.kernel.org, Ingo Molnar , Mark Rutland , Alexander Shishkin , Ian Rogers , Adrian Hunter , linux-perf-users@vger.kernel.org Subject: [PATCH v6 3/7] perf/bpf: Remove #ifdef CONFIG_BPF_SYSCALL from struct perf_event members Date: Thu, 11 Apr 2024 18:50:15 -0700 Message-Id: <20240412015019.7060-4-khuey@kylehuey.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240412015019.7060-1-khuey@kylehuey.com> References: <20240412015019.7060-1-khuey@kylehuey.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 --- 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 d2a15c0c6f8a..07cd4722dedb 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; -- 2.34.1