Re: How to write a kernel patch to expose a kernel-level function?
- From: "Peter T. Breuer" <ptb@xxxxxxxxxxxxxxx>
- Date: Tue, 31 Jan 2006 12:45:54 +0100
John Hasler <john@xxxxxxxxxx> wrote:
> hzmonte writes:
>> What I want, and what smp_processor_id() returns, is which logical
>> processor the calling thread is running on. Is CPU0, CPU1, or CPU2, for
>> example?
> Why? Of what possible use could that information be? What problem are you
> trying to solve?
Dunno. Probably some mistaken idea. But anyway it would be simple to do
- some ioctl which returns what he wants. But doesn't he have the info
in proc anyway?
% cat /proc/self/cpu
cpu 0 1
cpu0 0 1
Peter
.
- Follow-Ups:
- Re: How to write a kernel patch to expose a kernel-level function?
- From: Jean-David Beyer
- Re: How to write a kernel patch to expose a kernel-level function?
- 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: John Hasler
- How to write a kernel patch to expose a kernel-level function?
- Prev by Date: Re: I Want to identify best Linux approach, and any pitfalls.
- Next by Date: Re: Linux Multi-CPU performance
- Previous by thread: Re: How to write a kernel patch to expose a kernel-level function?
- Next by thread: Re: How to write a kernel patch to expose a kernel-level function?
- Index(es):
Relevant Pages
|