[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <c62985530811250359s42f1eb72kb65a5ac1a510d0d1@mail.gmail.com>
Date: Tue, 25 Nov 2008 12:59:22 +0100
From: "Frédéric Weisbecker" <fweisbec@...il.com>
To: "Pekka Paalanen" <pq@....fi>
Cc: "Ingo Molnar" <mingo@...e.hu>,
"Steven Rostedt" <rostedt@...dmis.org>,
linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 1/2] mmiotrace: fix buffer overrun detection
2008/11/25 Frédéric Weisbecker <fweisbec@...il.com>:
> Perhaps that:
>
> int trace_vprintk(unsigned long ip, const char *fmt, va_list args)
> {
> ......
> if (tracing_disabled)
> return 0;
Since this is the return value for tracing_mark_write(), it may better
return an error to avoid a spin when tracing
is disabled. -ENODEV I guess, or -EBUSY
The strange thing is that tracing_open_generic() shoud have return
-ENODEV in this case during the opening of trace_mark.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists