Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 1173
b: refs/heads/master
c: dfaa9c9
h: refs/heads/master
i:
  1171: 992aa28
v: v3
  • Loading branch information
William Lee Irwin III authored and Linus Torvalds committed May 17, 2005
1 parent b4eb3ec commit 6d10d20
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5418b6925c353c8286651b67fdb8559dd9e54e46
refs/heads/master: dfaa9c94b13071c9b5f8578d0ae99acc76c60139
16 changes: 10 additions & 6 deletions trunk/kernel/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,19 @@ static DECLARE_MUTEX(profile_flip_mutex);

static int __init profile_setup(char * str)
{
static char __initdata schedstr[] = "schedule";
int par;

if (!strncmp(str, "schedule", 8)) {
if (!strncmp(str, schedstr, strlen(schedstr))) {
prof_on = SCHED_PROFILING;
printk(KERN_INFO "kernel schedule profiling enabled\n");
if (str[7] == ',')
str += 8;
}
if (get_option(&str,&par)) {
if (str[strlen(schedstr)] == ',')
str += strlen(schedstr) + 1;
if (get_option(&str, &par))
prof_shift = par;
printk(KERN_INFO
"kernel schedule profiling enabled (shift: %ld)\n",
prof_shift);
} else if (get_option(&str, &par)) {
prof_shift = par;
prof_on = CPU_PROFILING;
printk(KERN_INFO "kernel profiling enabled (shift: %ld)\n",
Expand Down

0 comments on commit 6d10d20

Please sign in to comment.