login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
September
»
21
Re: [patch 1/4] Linux Kernel Markers - Architecture Independent Code
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Mathieu Desnoyers <mathieu.desnoyers@...>
To: Steven Rostedt <rostedt@...>
Cc: <akpm@...>, <linux-kernel@...>, Frank Ch. Eigler <fche@...>, Christoph Hellwig <hch@...>, Rusty Russell <rusty@...>
Subject:
Re: [patch 1/4] Linux Kernel Markers - Architecture Independent Code
Date: Friday, September 21, 2007 - 9:45 am
* Steven Rostedt (
rostedt@goodmis.org
) wrote:
quoted text
> On Tue, Sep 18, 2007 at 05:13:25PM -0400, Mathieu Desnoyers wrote: > > +/* > > + * Sets the probe callback corresponding to one marker. > > + */ > > +static int set_marker(struct marker_entry **entry, > > + struct __mark_marker *elem) > > +{ > > + int ret; > > + BUG_ON(strcmp((*entry)->name, elem->name) != 0); > > Can you switch this at least to WARN_ON? Killing a system with X > running where the user just sees a freeze is not that nice. But a nasty > message in dmesg is very noticable. >
Sure.
quoted text
> -- Steve > > > + > > + if ((*entry)->format) { > > + if (strcmp((*entry)->format, elem->format) != 0) { > > + printk(KERN_NOTICE > > + "Format mismatch for probe %s " > > + "(%s), marker (%s)\n", > > + (*entry)->name, > > + (*entry)->format, > > + elem->format); > > + return -EPERM; > > + } > > + } else { > > + ret = marker_set_format(entry, elem->format); > > + if (ret) > > + return ret; > > + } > > + elem->call = (*entry)->probe; > > + elem->pdata = (*entry)->pdata; > > + _immediate_set(elem->state, 1); > > + return 0; > > +}
-- Mathieu Desnoyers Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68 -
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 1/4] Linux Kernel Markers - Architecture Independent ...
, Mathieu Desnoyers
, (Tue Sep 18, 5:13 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Steven Rostedt
, (Thu Sep 20, 8:58 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Fri Sep 21, 9:45 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Wed Sep 19, 7:37 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Frank Ch. Eigler
, (Wed Sep 19, 9:53 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Denys Vlasenko
, (Wed Sep 19, 4:32 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Fri Sep 21, 8:58 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Frank Ch. Eigler
, (Fri Sep 21, 9:30 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Fri Sep 21, 9:38 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Frank Ch. Eigler
, (Mon Oct 15, 3:41 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Mon Oct 15, 7:12 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Roland McGrath
, (Mon Oct 15, 7:50 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Thu Oct 25, 3:17 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Frank Ch. Eigler
, (Fri Oct 26, 10:28 am)
[PATCH] markers: modpost
, Roland McGrath
, (Wed Oct 31, 9:06 pm)
Re: [PATCH] markers: modpost
, Mathieu Desnoyers
, (Wed Oct 31, 10:46 pm)
Re: [PATCH] markers: modpost
, Roland McGrath
, (Thu Nov 1, 5:37 am)
Re: [PATCH] markers: modpost
, Mathieu Desnoyers
, (Thu Nov 1, 7:24 am)
Re: [PATCH] markers: modpost
, David Smith
, (Thu Nov 8, 3:31 pm)
Re: [PATCH] markers: modpost
, Mathieu Desnoyers
, (Thu Nov 8, 3:36 pm)
Re: [PATCH] markers: modpost
, David Smith
, (Fri Nov 9, 12:36 pm)
Re: [PATCH] markers: modpost
, Mathieu Desnoyers
, (Sun Nov 11, 7:24 pm)
Re: [PATCH] markers: modpost
, David Smith
, (Thu Nov 8, 3:45 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Christoph Hellwig
, (Fri Sep 21, 9:07 am)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Denys Vlasenko
, (Wed Sep 19, 1:32 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Wed Sep 19, 2:46 pm)
Re: [patch 1/4] Linux Kernel Markers - Architecture Independ...
, Mathieu Desnoyers
, (Wed Sep 19, 2:50 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Brandeburg, Jesse
RE: [regression] e1000e broke e1000 (was: Re: [ANNOUNCE] e1000 toe1000e migration ...
Vladislav Bolkhovitin
Re: Integration of SCST in the mainstream Linux kernel
Linus Torvalds
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
IKEDA Munehiro
[RFD] Documentation/stable_api_nonsense.txt translated into Japanese
git
:
linux-netdev
:
Gerrit Renker
[PATCH 02/37] dccp: Implement lookup table for feature-negotiation information
Paweł Staszewski
Re: rib_trie / Fix inflate_threshold_root. Now=15 size=11 bits
David Miller
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
David Miller
[GIT]: Networking
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
0 users
and
645 guests
online.
Syndicate