From 832eb7cf7140fc2037cf248ee050453b55892e46 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Mon, 25 Nov 2002 17:56:43 -0800 Subject: [PATCH] Allow for profile_buf size = kernel text size Patch from Ravikiran G Thirumalai Allows the kernel profiler to use a shift value of zero for high-resolution profiling. So instead of overloading a shift of zero to mean "not profiling", use a separate flag for that. This means that anyone who is currently using "profile=0" to disable profiling has accidentally turned profiling on, so I added a printk. --- include/linux/profile.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/linux/profile.h b/include/linux/profile.h index 11fbe9cec572..7ee46d4bb3cc 100644 --- a/include/linux/profile.h +++ b/include/linux/profile.h @@ -17,6 +17,7 @@ void __init profile_init(void); extern unsigned int * prof_buffer; extern unsigned long prof_len; extern unsigned long prof_shift; +extern int prof_on; enum profile_type { -- cgit v1.2.3