diff options
| author | <jgarzik@pretzel.yyz.us> | 2005-05-27 22:07:02 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-05-27 22:07:02 -0400 |
| commit | 1f15d694522af9cd7492695f11dd2dc77b6cf098 (patch) | |
| tree | 7f67a4c38456ec73359d576a5c602d18c3c3ef72 /kernel/profile.c | |
| parent | fff9cfd99c0f88645c3f50d7476d6c8cef99f140 (diff) | |
| parent | 254feb882a7c6e4e51416dff6a97d847fbbba551 (diff) | |
Automatic merge of /spare/repo/netdev-2.6 branch master
Diffstat (limited to 'kernel/profile.c')
| -rw-r--r-- | kernel/profile.c | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/kernel/profile.c b/kernel/profile.c index 0221a50ca867..ad8cbb75ffa2 100644 --- a/kernel/profile.c +++ b/kernel/profile.c | |||
| @@ -49,15 +49,19 @@ static DECLARE_MUTEX(profile_flip_mutex); | |||
| 49 | 49 | ||
| 50 | static int __init profile_setup(char * str) | 50 | static int __init profile_setup(char * str) |
| 51 | { | 51 | { |
| 52 | static char __initdata schedstr[] = "schedule"; | ||
| 52 | int par; | 53 | int par; |
| 53 | 54 | ||
| 54 | if (!strncmp(str, "schedule", 8)) { | 55 | if (!strncmp(str, schedstr, strlen(schedstr))) { |
| 55 | prof_on = SCHED_PROFILING; | 56 | prof_on = SCHED_PROFILING; |
| 56 | printk(KERN_INFO "kernel schedule profiling enabled\n"); | 57 | if (str[strlen(schedstr)] == ',') |
| 57 | if (str[7] == ',') | 58 | str += strlen(schedstr) + 1; |
| 58 | str += 8; | 59 | if (get_option(&str, &par)) |
| 59 | } | 60 | prof_shift = par; |
| 60 | if (get_option(&str,&par)) { | 61 | printk(KERN_INFO |
| 62 | "kernel schedule profiling enabled (shift: %ld)\n", | ||
| 63 | prof_shift); | ||
| 64 | } else if (get_option(&str, &par)) { | ||
| 61 | prof_shift = par; | 65 | prof_shift = par; |
| 62 | prof_on = CPU_PROFILING; | 66 | prof_on = CPU_PROFILING; |
| 63 | printk(KERN_INFO "kernel profiling enabled (shift: %ld)\n", | 67 | printk(KERN_INFO "kernel profiling enabled (shift: %ld)\n", |
