All of lore.kernel.org
 help / color / mirror / Atom feed
From: matwey.kornilov@gmail.com (Matwey V. Kornilov)
To: kernelnewbies@lists.kernelnewbies.org
Subject: Get local CPU id
Date: Mon, 09 Mar 2015 18:35:21 +0300	[thread overview]
Message-ID: <mdkejp$2tv$1@ger.gmane.org> (raw)
In-Reply-To: <mdi6jf$1ah$1@ger.gmane.org>


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

  parent reply	other threads:[~2015-03-09 15:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-08 19:06 Get local CPU id Matwey V. Kornilov
2015-03-08 20:41 ` Nicholas Krause
2015-03-08 21:49 ` Maxime Ripard
2015-03-08 22:03   ` Nicholas Krause
2015-03-08 22:30   ` Valdis.Kletnieks at vt.edu
2015-03-08 23:10     ` Nicholas Krause
2015-03-09 14:39       ` Maxime Ripard
2015-03-09 12:59     ` Maxime Ripard
2015-03-09  0:37 ` Anish Kumar
2015-03-09  0:52   ` Nicholas Krause
2015-03-09 15:35 ` Matwey V. Kornilov [this message]
2015-03-09 16:26   ` Jeff Haran
2015-03-09 17:42     ` Nick Krause
2015-03-09 18:10       ` Valdis.Kletnieks at vt.edu
2015-03-09 20:05         ` Nicholas Krause

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='mdkejp$2tv$1@ger.gmane.org' \
    --to=matwey.kornilov@gmail.com \
    --cc=kernelnewbies@lists.kernelnewbies.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.