Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp175498lqn; Thu, 11 Apr 2024 19:04:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXws4wvw22GJD8wuK914rG1/TT/OEOm5Fbz3BGxplk4roXrtAwnv2B4dFd082W1GANfou59pHf6rE13yla0/VGFbedsKrSdByxRWIN93Q== X-Google-Smtp-Source: AGHT+IHbcPsL4nnv7MOm7Hb0VH4ncB6IwN/lnF4DaF8Gp+YCOkthxqgNM7jieCEwfwRc3ImiMRPV X-Received: by 2002:a17:90a:ead8:b0:2a4:ad2e:1c5a with SMTP id ev24-20020a17090aead800b002a4ad2e1c5amr1391247pjb.35.1712887482900; Thu, 11 Apr 2024 19:04:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712887482; cv=pass; d=google.com; s=arc-20160816; b=Gx5gYoX1bYaYY3I/8M/lvY9UKM9wD67o6OJPVpAwDNG9lerenqiw4WKr3tfFM3Uh3C 1FBJQBXfLuZ66WEhJoxifAGrSZELBSR+Ez+wElAlyOHNDgYAK+HVdRoqAz4/QDRQ+DlR GpCJhp4BeiL0b+ao9Y2rBsxC+y6IEIhISg9LE9At1cMjCqcY6QPo0CJj6a/Bxv7iI1rT Fce4KojLyet2GUIR/oX4fx4lQcFvOVe+Bd8CV7gWW/eL6pzlPWz6nY4uoLwFDjDpfDUh z/t8mH2PJXNJiCI1uy4lvxDsCXjqdK3+tskSDJ+lFdzdW6WmweC2DL4zXz6e8DGW+9Wp YKjw== 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=IR+aRAW+xEUckMtcdjKW/EEXnX6Dbx8rKcxaN3dNqzg=; fh=VmVIKsFzNYlVrlm3LwI3SN/z2jrJVYCe09KGmlHrlXA=; b=K98++nwfhhowYqsYrJ1VADvL6B1sZQDJwvei71uxayH+abmCsaYsThBUGSCmx/u7gF FCl3Hln89m6rCR8Tcg80bLn9PrXSGPHP7TyLM0wUlmYeHU1ww8VgMLtWS2nnpkAW8Ycd L3KSeP7hE8bjDmLwcseFnCW6Vppb9A6dyISkzbB7V4hPs4ZKxzB1PoMNkqOCmqV4opjU 45sMd+bTsyFXqhSAO0R2z5qE024GBHeSQNTNq7XwsFv8k9tsrjboGbgdAng85tGvB1CA bnupPXzJKCKxOBPMANdATI974Je4RykaTPhFGY5xlxTLdwhAAAPSld5SKw4X0E+gu5Y+ sGvw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kylehuey.com header.s=google header.b=aU0bVvpI; arc=pass (i=1 spf=pass spfdomain=kylehuey.com dkim=pass dkdomain=kylehuey.com); spf=pass (google.com: domain of linux-kernel+bounces-141782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141782-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id l11-20020a17090ac58b00b002a2e545eac4si4527787pjt.87.2024.04.11.19.04.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 19:04:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kylehuey.com header.s=google header.b=aU0bVvpI; arc=pass (i=1 spf=pass spfdomain=kylehuey.com dkim=pass dkdomain=kylehuey.com); spf=pass (google.com: domain of linux-kernel+bounces-141782-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141782-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D86B6B22301 for ; Fri, 12 Apr 2024 01:51:15 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BA4612E63; Fri, 12 Apr 2024 01:50:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kylehuey.com header.i=@kylehuey.com header.b="aU0bVvpI" Received: from mail-qk1-f179.google.com (mail-qk1-f179.google.com [209.85.222.179]) (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 30C5EDF55 for ; Fri, 12 Apr 2024 01:50:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.179 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712886651; cv=none; b=dsXDlaDmAyX0AMFR6zRXU/7qH2KXynimLfRjWJxZC4EKAnatzauyGAlLxgMKkyoZ9d6T5e6USCdA7zy70fBm5pHjkEBEmy1EVpJMFvLmQhIcr23819ZW5+MexCEWRM5gGzS2dbxezPPxSKs9CE6aFOaYAw68VuzZDLvsRoUpNns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712886651; c=relaxed/simple; bh=7YouWyZuxbSYzHxqPUnW+aY1UMlIJgGnhI+PHUoOFhQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e1BQHX8LOF0d2tTr5KCYHTQJ16I8XtTElR2BzRAWdwPiJ08+kUKe2eS5kgWLHy4VM0hJLt2puD1Brsy+BRUd23tT21keSCQM+/hyML3mZxBFKslEPYSawUvcr+bS+6rMT04bj2UHpWX4MTOCX/EUzzRcmXdBdfYV81RVvCA5caA= 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=aU0bVvpI; arc=none smtp.client-ip=209.85.222.179 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-f179.google.com with SMTP id af79cd13be357-78d5f0440d3so24470885a.2 for ; Thu, 11 Apr 2024 18:50:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kylehuey.com; s=google; t=1712886649; x=1713491449; 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=IR+aRAW+xEUckMtcdjKW/EEXnX6Dbx8rKcxaN3dNqzg=; b=aU0bVvpItdjjGy0Uh4y25anjArKIOtlIy5bEQk0mhmXbgUtnAoxQU+EWL0JLXBUsGE PaFzOpaJzH8GVLLDtvVTKCjsLTFLU3B0AAlawSh4HGgxhag7TfwZH/R+MYRm7QUwbMAG w8FRBHIep8Bt+j5TOyytwhtljABL69vAvnkrXANE7rldNPtRV4s9KqL/BVLLdaS0EEhU S7NYM1+pr3opDH0IQanKJieTjzymm+1VP+TTtawBfPlvipoLVVtG8Lq+0a4+iHZQoxji bYan7dULV/jISLCvZvrhf5LY4IUpVNt3UDYdMtkiPY1qHjhOBcRJAb9+2KRRgreFRl9R P3hA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712886649; x=1713491449; 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=IR+aRAW+xEUckMtcdjKW/EEXnX6Dbx8rKcxaN3dNqzg=; b=kfJGFk5o7G6kizE/QsHV7PDktr01yTO130vFDA5t9YIB2SWDQWGbB3NtBkpkNPhtay o0dkAOBKmymr8PHmsOticabzUOm6nqhp3YOP1VLEtOpkHB9rv8nA+JMNd2Lc9n5GJdkK inzbCPYHR4kb6obils4TB7zMjPBnYfb5eAA/Zt2Qq9Owy2sSR0OUB0MPnC7kWgUw+Sdk p1xVjdkJo7xU4vE4Q0WjvUAFsf7NQw6RV6cHu7RidGU6mkAy+Meo+BwtGnLqWs3E5HMm RtA4Dwgy5VsAU7ROVv64Q5yZstuYcMDn/OMr80wRtB12qmAY4LVK6M3g6CyAdrqvOLdl VBMw== X-Forwarded-Encrypted: i=1; AJvYcCVXECdTVbCe1t6khS4WCxneITPxVB85yHKnhX1zRiLE90ruXVGdhMv47iJ9F5XfNKZ8KmJBV8qJ6c44YygOQmZ2bN6m9YgaYoXIVz64 X-Gm-Message-State: AOJu0YwzzseWayX3oJGKNIdgxWEG5qqKn3XrtAkzjCR1QfI10VKcA1Y+ ydNXY350lzuuTZaHALKBA48xKlJz+bpGfaeQ+Z6ei1vcmHo6jBccbjN8ILB5GA== X-Received: by 2002:a05:620a:1983:b0:78d:6339:b943 with SMTP id bm3-20020a05620a198300b0078d6339b943mr1698615qkb.20.1712886649123; Thu, 11 Apr 2024 18:50:49 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 18:50:48 -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 2/7] perf/bpf: Create bpf_overflow_handler() stub for !CONFIG_BPF_SYSCALL Date: Thu, 11 Apr 2024 18:50:14 -0700 Message-Id: <20240412015019.7060-3-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 call bpf_overflow_handler(). Signed-off-by: Kyle Huey --- kernel/events/core.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kernel/events/core.c b/kernel/events/core.c index ee025125a681..a7c2a739a27c 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -9624,6 +9624,12 @@ static void perf_event_free_bpf_handler(struct perf_event *event) bpf_prog_put(prog); } #else +static void bpf_overflow_handler(struct perf_event *event, + struct perf_sample_data *data, + struct pt_regs *regs) +{ +} + static int perf_event_set_bpf_handler(struct perf_event *event, struct bpf_prog *prog, u64 bpf_cookie) -- 2.34.1