Re: How to write a kernel patch to expose a kernel-level function?
- From: Jean-David Beyer <jeandavid8@xxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 10:19:25 GMT
hzmonte@xxxxxxxxxxx wrote:
>> Why? Of what possible use could that information be? What problem are you
>> trying to solve?
>
>> A different story is that the result is probably invalid at the time your user code gets it. There
>> is no guarantee that the process is running on the reported processor anymore.
>
> I am trying to make sure sched_setaffinity() works. That system call
> allows you to restrict the execution of the calling thread on a (set
> of) particular logical processor(s). So, after I call
> sched_setaffinity(), I want to call smp_processor_id() to see if the
> thread is indeed executing on a processor selected.
>
Why not, instead, examine the kernel code related to this and see if it is
OK? Would that not be easier than tinkering with the kernel?
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 05:15:00 up 10 days, 20:42, 5 users, load average: 4.08, 4.10, 4.09
.
- References:
- How to write a kernel patch to expose a kernel-level function?
- From: hzmonte
- Re: How to write a kernel patch to expose a kernel-level function?
- From: Tauno Voipio
- Re: How to write a kernel patch to expose a kernel-level function?
- From: hzmonte
- Re: How to write a kernel patch to expose a kernel-level function?
- From: Tauno Voipio
- Re: How to write a kernel patch to expose a kernel-level function?
- From: hzmonte
- How to write a kernel patch to expose a kernel-level function?
- Prev by Date: Re: How to follow symbolic link(s) to the actual filename?
- Next by Date: Re: How to follow symbolic link(s) to the actual filename?
- Previous by thread: Re: How to write a kernel patch to expose a kernel-level function?
- Next by thread: Re: Software to rearrange loops
- Index(es):
Relevant Pages
|