lkml.org 
[lkml]   [2006]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/11] LTTng-core 0.5.108 : core
hoi :)

On Wed, Sep 13, 2006 at 11:43:08PM -0400, Mathieu Desnoyers wrote:
> +int ltt_module_register(enum ltt_module_function name, void *function,
> + struct module *owner)
> +{
> + int ret = 0;
> +
> + /* Protect these operations by disallowing them when tracing is
> + * active */
> + if(ltt_traces.num_active_traces) {
> + ret = -EBUSY;
> + goto end;
> + }

what would happen otherwise?
can it happen that someone enables tracing between this check and
the rest of the function?

> + new_trace->transport = transport;
> + new_trace->ops = &transport->ops;
> +
> + err = -new_trace->ops->create_dirs(new_trace);
^ typo or intentional?


--
Martin Waitz
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2006-09-14 09:47    [W:0.073 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site