profile.c (f0eef25339f92f7cd4aeea23d9ae97987a5a1e82) profile.c (a75acf850ca80136a4f845cf9a7cd26e7465c1f4)
1/*
2 * linux/kernel/profile.c
3 * Simple profiling. Manages a direct-mapped profile hit count buffer,
4 * with configurable resolution, support for restricting the cpus on
5 * which profiling is done, and switching between cpu time and
6 * schedule() calls via kernel command line parameters passed at boot.
7 *
8 * Scheduler profiling support, Arjan van de Ven and Ingo Molnar,

--- 49 unchanged lines hidden (view full) ---

58 prof_on = SLEEP_PROFILING;
59 if (str[strlen(sleepstr)] == ',')
60 str += strlen(sleepstr) + 1;
61 if (get_option(&str, &par))
62 prof_shift = par;
63 printk(KERN_INFO
64 "kernel sleep profiling enabled (shift: %ld)\n",
65 prof_shift);
1/*
2 * linux/kernel/profile.c
3 * Simple profiling. Manages a direct-mapped profile hit count buffer,
4 * with configurable resolution, support for restricting the cpus on
5 * which profiling is done, and switching between cpu time and
6 * schedule() calls via kernel command line parameters passed at boot.
7 *
8 * Scheduler profiling support, Arjan van de Ven and Ingo Molnar,

--- 49 unchanged lines hidden (view full) ---

58 prof_on = SLEEP_PROFILING;
59 if (str[strlen(sleepstr)] == ',')
60 str += strlen(sleepstr) + 1;
61 if (get_option(&str, &par))
62 prof_shift = par;
63 printk(KERN_INFO
64 "kernel sleep profiling enabled (shift: %ld)\n",
65 prof_shift);
66 } else if (!strncmp(str, sleepstr, strlen(sleepstr))) {
66 } else if (!strncmp(str, schedstr, strlen(schedstr))) {
67 prof_on = SCHED_PROFILING;
68 if (str[strlen(schedstr)] == ',')
69 str += strlen(schedstr) + 1;
70 if (get_option(&str, &par))
71 prof_shift = par;
72 printk(KERN_INFO
73 "kernel schedule profiling enabled (shift: %ld)\n",
74 prof_shift);

--- 504 unchanged lines hidden ---
67 prof_on = SCHED_PROFILING;
68 if (str[strlen(schedstr)] == ',')
69 str += strlen(schedstr) + 1;
70 if (get_option(&str, &par))
71 prof_shift = par;
72 printk(KERN_INFO
73 "kernel schedule profiling enabled (shift: %ld)\n",
74 prof_shift);

--- 504 unchanged lines hidden ---