profile.c (02316067852187b8bec781bec07410e91af79627) profile.c (15ad7cdcfd76450d4beebc789ec646664238184d)
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,

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

496 return -EINVAL;
497 }
498#endif
499 profile_discard_flip_buffers();
500 memset(prof_buffer, 0, prof_len * sizeof(atomic_t));
501 return count;
502}
503
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,

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

496 return -EINVAL;
497 }
498#endif
499 profile_discard_flip_buffers();
500 memset(prof_buffer, 0, prof_len * sizeof(atomic_t));
501 return count;
502}
503
504static struct file_operations proc_profile_operations = {
504static const struct file_operations proc_profile_operations = {
505 .read = read_profile,
506 .write = write_profile,
507};
508
509#ifdef CONFIG_SMP
510static void __init profile_nop(void *unused)
511{
512}

--- 66 unchanged lines hidden ---
505 .read = read_profile,
506 .write = write_profile,
507};
508
509#ifdef CONFIG_SMP
510static void __init profile_nop(void *unused)
511{
512}

--- 66 unchanged lines hidden ---