diff options
| author | <jgarzik@pretzel.yyz.us> | 2005-06-04 00:40:40 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-04 00:40:40 -0400 |
| commit | ae20ea8525a80a863f70d332cf47b71bd9f54c1f (patch) | |
| tree | 9d3cedeb65db521a8436b545bd91641549a18d24 /kernel/profile.c | |
| parent | f497ba735fc9ff4e35a19641143708b3be1c7061 (diff) | |
| parent | 8be3de3fd8469154a2b3e18a4712032dac5b4a53 (diff) | |
Automatic merge of /spare/repo/linux-2.6/.git branch HEAD
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", |
