Get local CPU id
Nick Krause
xerofoify at gmail.com
Mon Mar 9 13:42:04 EDT 2015
On Mon, Mar 9, 2015 at 12:26 PM, Jeff Haran <Jeff.Haran at citrix.com> wrote:
> -----Original Message-----
> From: kernelnewbies-bounces at kernelnewbies.org [mailto:kernelnewbies-bounces at kernelnewbies.org] On Behalf Of Matwey V. Kornilov
> Sent: Monday, March 09, 2015 8:35 AM
> To: kernelnewbies at kernelnewbies.org
> Subject: Re: Get local CPU id
>
>
> Many thanks for all answers. smp_processor_id() works just fine in interrupt context.
>
> Unfortunately /proc/interrupts is not what I was looking for. My idea was to print a line to dmesg at every interrupt to have a timestamp like the following:
>
> [ 926.440799] Enter intr at 0
> [ 926.441059] Exit intr at 0
>
> Every interrupt? You might want to spend some time thinking about which interrupts you don't want to do the above printing for.
>
> Jeff Haran
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
Jeff,
He can just limit the dmesg output by using console_limit I believe.
Nick
More information about the Kernelnewbies
mailing list