login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
September
»
3
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Frederic Weisbecker
Subject:
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
Date: Friday, September 3, 2010 - 8:50 am
On Fri, Sep 03, 2010 at 11:43:12AM -0400, Steven Rostedt wrote:
quoted text
> On Fri, 2010-09-03 at 17:29 +0200, Frederic Weisbecker wrote: > > > > /* > > > * These correspond to the IORESOURCE_IRQ_* defines in > > > @@ -407,7 +408,12 @@ asmlinkage void do_softirq(void); > > > asmlinkage void __do_softirq(void); > > > extern void open_softirq(int nr, void (*action)(struct softirq_action *)); > > > extern void softirq_init(void); > > > -#define __raise_softirq_irqoff(nr) do { or_softirq_pending(1UL << (nr)); } while (0) > > > +static inline void __raise_softirq_irqoff(unsigned int nr) > > > +{ > > > + trace_softirq_raise((struct softirq_action *)&nr, NULL); > > Perhaps doing: > > trace_softirq_raise((struct softirq_action *)((unsigend long)nr), > NULL); > > and ... > > > > + or_softirq_pending(1UL << nr); > > > +} > > > + > > > extern void raise_softirq_irqoff(unsigned int nr); > > > extern void raise_softirq(unsigned int nr); > > > extern void wakeup_softirqd(void); > > > diff --git a/include/trace/events/irq.h b/include/trace/events/irq.h > > > index 0e4cfb6..3ddda02 100644 > > > --- a/include/trace/events/irq.h > > > +++ b/include/trace/events/irq.h > > > @@ -5,7 +5,9 @@ > > > #define _TRACE_IRQ_H > > > > > > #include <linux/tracepoint.h> > > > -#include <linux/interrupt.h> > > > + > > > +struct irqaction; > > > +struct softirq_action; > > > > > > #define softirq_name(sirq) { sirq##_SOFTIRQ, #sirq } > > > #define show_softirq_name(val) \ > > > @@ -93,7 +95,10 @@ DECLARE_EVENT_CLASS(softirq, > > > ), > > > > > > TP_fast_assign( > > > - __entry->vec = (int)(h - vec); > > > + if (vec) > > > + __entry->vec = (int)(h - vec); > > > + else > > > + __entry->vec = *((int *)h); > > __entry->vec = (int)h; > > would be better. > > > > > ), > > > > > > > > It seems that this will break softirq_entry/exit tracepoints. > > __entry->vec will deref vec->action() for these two, which is not > > what we want. > > > > If you can't have the same tracepoint signature for the three, just > > split the new one in a seperate TRACE_EVENT(). > > Doing the above will at least be a bit safer.
Agreed, I'm going to change that in the patch. Thanks. --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH v4 0/5] netdev: show a process of packets
, Koki Sanagi
, (Mon Aug 23, 2:41 am)
[PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Koki Sanagi
, (Mon Aug 23, 2:42 am)
[PATCH v4 2/5] napi: convert trace_napi_poll to TRACE_EVENT
, Koki Sanagi
, (Mon Aug 23, 2:43 am)
[PATCH v4 4/5] skb: add tracepoints to freeing skb
, Koki Sanagi
, (Mon Aug 23, 2:46 am)
[PATCH v4 5/5] perf:add a script shows a process of packet
, Koki Sanagi
, (Mon Aug 23, 2:47 am)
Re: [PATCH v4 2/5] napi: convert trace_napi_poll to TRACE_ ...
, David Miller
, (Mon Aug 23, 8:52 pm)
Re: [PATCH v4 3/5] netdev: add tracepoints to netdev layer
, David Miller
, (Mon Aug 23, 8:53 pm)
Re: [PATCH v4 4/5] skb: add tracepoints to freeing skb
, David Miller
, (Mon Aug 23, 8:53 pm)
Re: [PATCH v4 5/5] perf:add a script shows a process of packet
, David Miller
, (Mon Aug 23, 8:53 pm)
Re: [PATCH v4 0/5] netdev: show a process of packets
, Steven Rostedt
, (Mon Aug 30, 4:50 pm)
Re: [PATCH v4 0/5] netdev: show a process of packets
, Koki Sanagi
, (Thu Sep 2, 7:10 pm)
Re: [PATCH v4 0/5] netdev: show a process of packets
, David Miller
, (Thu Sep 2, 7:17 pm)
Re: [PATCH v4 0/5] netdev: show a process of packets
, Koki Sanagi
, (Thu Sep 2, 7:55 pm)
Re: [PATCH v4 0/5] netdev: show a process of packets
, Frederic Weisbecker
, (Thu Sep 2, 9:46 pm)
Re: [PATCH v4 0/5] netdev: show a process of packets
, Koki Sanagi
, (Thu Sep 2, 10:12 pm)
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Frederic Weisbecker
, (Fri Sep 3, 8:29 am)
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Steven Rostedt
, (Fri Sep 3, 8:39 am)
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Frederic Weisbecker
, (Fri Sep 3, 8:42 am)
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Steven Rostedt
, (Fri Sep 3, 8:43 am)
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Frederic Weisbecker
, (Fri Sep 3, 8:50 am)
Re: [PATCH v4 1/5] irq: add tracepoint to softirq_raise
, Koki Sanagi
, (Sun Sep 5, 6:46 pm)
Re: [PATCH v4 5/5] perf:add a script shows a process of packet
, Frederic Weisbecker
, (Tue Sep 7, 9:57 am)
[tip:perf/core] irq: Add tracepoint to softirq_raise
, tip-bot for Lai Jian ...
, (Wed Sep 8, 1:33 am)
[tip:perf/core] napi: Convert trace_napi_poll to TRACE_EVENT
, tip-bot for Neil Horman
, (Wed Sep 8, 1:34 am)
[tip:perf/core] skb: Add tracepoints to freeing skb
, tip-bot for Koki Sanagi
, (Wed Sep 8, 1:35 am)
[tip:perf/core] perf: Add a script to show packets processing
, tip-bot for Koki Sanagi
, (Wed Sep 8, 1:35 am)
[sparc build bug] Re: [tip:perf/core] irq: Add tracepoint ...
, Ingo Molnar
, (Wed Sep 8, 4:25 am)
[PATCH] irq: Fix circular headers dependency
, Frederic Weisbecker
, (Wed Sep 8, 5:26 am)
[tip:perf/core] irq: Fix circular headers dependency
, tip-bot for Frederic ...
, (Thu Sep 9, 12:54 pm)
Re: [sparc build bug] Re: [tip:perf/core] irq: Add tracepo ...
, Peter Zijlstra
, (Mon Oct 18, 2:44 am)
Re: [sparc build bug] Re: [tip:perf/core] irq: Add tracepo ...
, Peter Zijlstra
, (Mon Oct 18, 3:11 am)
Re: [sparc build bug] Re: [tip:perf/core] irq: Add tracepo ...
, Heiko Carstens
, (Mon Oct 18, 3:26 am)
Re: [sparc build bug] Re: [tip:perf/core] irq: Add tracepo ...
, Peter Zijlstra
, (Mon Oct 18, 3:48 am)
Re: [sparc build bug] Re: [tip:perf/core] irq: Add tracepo ...
, Koki Sanagi
, (Tue Oct 19, 3:58 am)
Re: [sparc build bug] Re: [tip:perf/core] irq: Add tracepo ...
, Peter Zijlstra
, (Tue Oct 19, 4:25 am)
[PATCH] tracing: Cleanup the convoluted softirq tracepoints
, Thomas Gleixner
, (Tue Oct 19, 6:00 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Peter Zijlstra
, (Tue Oct 19, 6:08 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Tue Oct 19, 6:22 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 6:41 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 6:54 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Tue Oct 19, 7:00 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 7:07 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Tue Oct 19, 7:28 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 7:46 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 12:49 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 1:55 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 2:07 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, David Daney
, (Tue Oct 19, 2:16 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 2:23 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Jason Baron
, (Tue Oct 19, 2:28 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Jason Baron
, (Tue Oct 19, 2:32 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, David Daney
, (Tue Oct 19, 2:38 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 2:45 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 2:47 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 2:48 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 2:55 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 3:04 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 3:14 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Tue Oct 19, 3:17 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 3:23 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 3:26 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Peter Zijlstra
, (Tue Oct 19, 3:27 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 3:33 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Jason Baron
, (Tue Oct 19, 3:38 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Tue Oct 19, 3:41 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 3:44 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 3:49 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 3:56 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 3:57 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 4:05 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 4:09 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Tue Oct 19, 4:39 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 4:45 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Jason Baron
, (Tue Oct 19, 5:43 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Tue Oct 19, 6:36 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Jason Baron
, (Tue Oct 19, 6:52 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Jason Baron
, (Wed Oct 20, 8:27 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Wed Oct 20, 8:41 am)
[tip:perf/core] tracing: Cleanup the convoluted softirq tr ...
, tip-bot for Thomas G ...
, (Thu Oct 21, 7:52 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Thu Oct 21, 9:18 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Thu Oct 21, 10:05 am)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Thomas Gleixner
, (Thu Oct 21, 12:56 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Mon Oct 25, 2:54 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Mon Oct 25, 3:01 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Mon Oct 25, 3:12 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Mon Oct 25, 3:19 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Mon Oct 25, 3:31 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, H. Peter Anvin
, (Mon Oct 25, 3:32 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Mon Oct 25, 3:55 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Steven Rostedt
, (Mon Oct 25, 5:39 pm)
Re: [PATCH] tracing: Cleanup the convoluted softirq tracep ...
, Mathieu Desnoyers
, (Mon Oct 25, 6:14 pm)
Navigation
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Fortier,Vincent [Montreal]
2.6.21.5 june 30th to july 1st date hang?
Jeff Dike
[ PATCH 2/6 ] UML - Formatting fixes around os_{read_write}_file callers
Liam Girdwood
[PATCH 07/13] regulator: regulator test harness
Oleg Nesterov
Re: Getting the new RxRPC patches upstream
Stefan Seyfried
Re: 2.6.19-rc5: grub is much slower resuming from suspend-to-disk than in 2.6.18
linux-netdev
:
Arnaud Ebalard
Re: [REGRESSION,BISECTED] MIPv6 support broken by f4f914b58019f0
Jan Engelhardt
Re: [PATCH iptables] extension: add xt_cpu match
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Sebastian Andrzej Siewior
[PATCH 8/8] net/emergency: remove locking from reycling pool if emergncy pools are...
David Miller
Re: [PATCH] qlcnic: dont assume NET_IP_ALIGN is 2
git
:
Jakub Narebski
Re: git on MacOSX and files with decomposed utf-8 file names
Brandon Casey
Re: Thunderbird and patches (was Re: [PATCH v2] Enable setting attach as the def...
Christian Couder
[PATCH 1/3] rev-parse: add test script for "--verify"
Ramkumar Ramachandra
Re: [GSoC update] git-remote-svn: The final one
Junio C Hamano
Re: git-rm isn't the inverse action of git-add
openbsd-misc
:
Joachim Schipper
Re: UVC Webcams
Florin Andrei
SOLVED [was: firewall is very slow, something's wrong]
Todd Alan Smith
Re: Microsoft gets the Most Secure Operating Systems award
Neal Hogan
Re: Need Advice: Thinkpad T60 or T61?
Sam Fourman Jr.
Re: Real men don't attack straw men
git-commits-head
:
Linux Kernel Mailing List
ACPI: Disable ARB_DISABLE on platforms where it is not needed
Linux Kernel Mailing List
m68knommu: add read_barrier_depends() and irqs_disabled_flags()
Linux Kernel Mailing List
[MTD] Add mtd panic_write function pointer
Linux Kernel Mailing List
[ARM] pxa: remove duplicate select statements from Kconfig
Linux Kernel Mailing List
mlx4_core: Don't read reserved fields in mlx4_QUERY_ADAPTER()
Colocation donated by:
Syndicate