I have a problem with schedule() and sys_perf_event_open.

Mulyadi Santosa mulyadi.santosa at gmail.com
Mon Mar 14 13:22:39 EDT 2011


Hi Minwoo...

I am not the best... just trying to give idea here...

On Tue, Mar 15, 2011 at 00:03, Minwoo Lee <ermaker at gmail.com> wrote:
> Hello.
> I am hacking the kernel source for studying.
> I just modified schedule() in kernel/sched.c for profiling processes.


basic question is: are you sure the cache misses you see during
schedule is entirely attributed to the soon-to-be-switched-out
process? have you consider that during that process run time, on going
interrupts/exception etc could attribute into the cache misses?

and about this line:
BUG_ON(res != sizeof(u64))

not sure if I read it correctly, but previously I see "res" is
declared as size_t, right?



-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com



More information about the Kernelnewbies mailing list