Thread (161 messages) 161 messages, 8 authors, 2025-04-24

Re: [PATCH v4 14/39] perf/x86: Rename get_segment_base() and make it global

From: Steven Rostedt <rostedt@goodmis.org>
Date: 2025-01-24 20:09:20
Also in: linux-perf-users, linux-toolchains, lkml

On Tue, 21 Jan 2025 18:31:06 -0800
Josh Poimboeuf [off-list ref] wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
index c75c482d4c52..23ac6343cf86 100644
--- a/arch/x86/events/core.c
+++ b/arch/x86/events/core.c
@@ -2790,7 +2790,7 @@ valid_user_frame(const void __user *fp, unsigned long size)
 	return __access_ok(fp, size);
 }
 
-static unsigned long get_segment_base(unsigned int segment)
+unsigned long segment_base_address(unsigned int segment)
 {
 	struct desc_struct *desc;
 	unsigned int idx = segment >> 3;
As this requires interrupts disabled, and if you do move this out of this
file, you probably should add:

	lockdep_assert_irqs_disabled();

-- Steve
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help