From patchwork Sun Dec 15 19:34:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 13908955 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 509261BE251; Sun, 15 Dec 2024 19:35:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734291315; cv=none; b=M33f5kkVsD+2qR4qlO05GhioCt7beS4+Z1lDhOyAnlrWm6fOUts/t6ZVtBIAq6rlTwgFgEEXBpUoU5+Bb6gQDjYMS0NzwkvyIlt8CWP0dqpVnb2UEUsSTNh94wC19TAzEoVTGhCOiuHuNShc8HNMkQD8IuwLmbeHhGo8fdZckGw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734291315; c=relaxed/simple; bh=OEI2Fz2yXqTgdBh5vpHorwKmhmsxHR/gg703j4lqtIM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=I7g0lo7VWJ3zSlE2GUpRWsRWgjaL8wESoLUQHPR9lxNNCpDOx2W+1zvm+2z5/GxsTXOauc23VzS4BfqIU8gx8/HQp8e3QyMwLjcezQEF6/UXL8RtaErlws56MzDzwPNI2Wsf/eJJPRYagNVGKLg7ItdzluP3PhqlQTG22moWxTg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id A0FCC168F; Sun, 15 Dec 2024 11:35:40 -0800 (PST) Received: from e132581.cambridge.arm.com (e132581.arm.com [10.2.76.71]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 9E4883F528; Sun, 15 Dec 2024 11:35:08 -0800 (PST) From: Leo Yan To: Arnaldo Carvalho de Melo , Adrian Hunter , Namhyung Kim , Jiri Olsa , Ian Rogers , James Clark , "Liang, Kan" , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Matt Bobrowski , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, bpf@vger.kernel.org, linux-trace-kernel@vger.kernel.org, Suzuki K Poulose , Mike Leach Cc: Leo Yan Subject: [PATCH v1 1/7] perf/core: Make perf_event_aux_pause() as external function Date: Sun, 15 Dec 2024 19:34:30 +0000 Message-Id: <20241215193436.275278-2-leo.yan@arm.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241215193436.275278-1-leo.yan@arm.com> References: <20241215193436.275278-1-leo.yan@arm.com> Precedence: bulk X-Mailing-List: linux-trace-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Expose perf_event_aux_pause() as an external function, this will be used by eBPF APIs in sequential changes. Signed-off-by: Leo Yan --- include/linux/perf_event.h | 1 + kernel/events/core.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h index cb99ec8c9e96..890b7ba4a729 100644 --- a/include/linux/perf_event.h +++ b/include/linux/perf_event.h @@ -1162,6 +1162,7 @@ int perf_event_read_local(struct perf_event *event, u64 *value, u64 *enabled, u64 *running); extern u64 perf_event_read_value(struct perf_event *event, u64 *enabled, u64 *running); +extern void perf_event_aux_pause(struct perf_event *event, bool pause); extern struct perf_callchain_entry *perf_callchain(struct perf_event *event, struct pt_regs *regs); diff --git a/kernel/events/core.c b/kernel/events/core.c index 065f9188b44a..8deb356a915e 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c @@ -8032,7 +8032,7 @@ static void __perf_event_aux_pause(struct perf_event *event, bool pause) } } -static void perf_event_aux_pause(struct perf_event *event, bool pause) +void perf_event_aux_pause(struct perf_event *event, bool pause) { struct perf_buffer *rb;