public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/7049] New: use raw_smp_processor_id more
@ 2008-11-25 15:59 fche at redhat dot com
  2008-11-28  6:26 ` [Bug translator/7049] " wenji dot huang at oracle dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2008-11-25 15:59 UTC (permalink / raw)
  To: systemtap

In most of our kernel-side code, translator-generated or runtime,
we use the kosher smp_processor_id function to get the cpu number.
Considering that we always disable preemption, it seems useful
to switch to raw_smp_processor_id() in several spots, which would
exclude the redundant runtime checks compiled into the plain variant.

-- 
           Summary: use raw_smp_processor_id more
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com
                CC: mhiramat at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=7049

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/7049] use raw_smp_processor_id more
  2008-11-25 15:59 [Bug translator/7049] New: use raw_smp_processor_id more fche at redhat dot com
@ 2008-11-28  6:26 ` wenji dot huang at oracle dot com
  0 siblings, 0 replies; 2+ messages in thread
From: wenji dot huang at oracle dot com @ 2008-11-28  6:26 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From wenji dot huang at oracle dot com  2008-11-28 06:24 -------
Created an attachment (id=3083)
 --> (http://sourceware.org/bugzilla/attachment.cgi?id=3083&action=view)
patch for using raw_smp_processor_id

Seem no much available spots, two direct ones. As for the functions calling
preempt_disable like spin_lock_irq, the following reference to smp_processor_id

isn't easily found.


-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=7049

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-28  6:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-25 15:59 [Bug translator/7049] New: use raw_smp_processor_id more fche at redhat dot com
2008-11-28  6:26 ` [Bug translator/7049] " wenji dot huang at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).