lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 17 Sep 2008 00:24:44 +0300
From:	Pekka Paalanen <pq@....fi>
To:	Steven Rostedt <rostedt@...dmis.org>
Cc:	Ingo Molnar <mingo@...e.hu>,
	Frédéric Weisbecker <fweisbec@...il.com>,
	Linux Kernel <linux-kernel@...r.kernel.org>,
	Peter Zijlstra <a.p.zijlstra@...llo.nl>,
	Pavel Roskin <proski@....org>
Subject: Re: [PATCH 5/7] mmiotrace: handle TRACE_PRINT entries.

On Tue, 16 Sep 2008 16:11:20 -0400 (EDT)
Steven Rostedt <rostedt@...dmis.org> wrote:

> On Tue, 16 Sep 2008, Pekka Paalanen wrote:
> 
> > From 6a458e250857907e16cb16799392fccbfd5f0f4a Mon Sep 17 00:00:00 2001
> > From: Pekka Paalanen <pq@....fi>
> > Date: Sun, 17 Aug 2008 18:15:13 +0300
> > Subject: [PATCH] mmiotrace: handle TRACE_PRINT entries.
> > 
> > Also make trace_seq_print_cont() non-static, and add a newline if the
> > seq buffer can't hold all data.
> > 
> > Signed-off-by: Pekka Paalanen <pq@....fi>
> > ---
> >  kernel/trace/trace.c           |   31 +++++++++++--------------------
> >  kernel/trace/trace.h           |   19 +++++++++++++++++++
> >  kernel/trace/trace_mmiotrace.c |   23 +++++++++++++++++++++++
> >  3 files changed, 53 insertions(+), 20 deletions(-)
> > 
> > diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
> > index 406de9c..7e7154f 100644
> > --- a/kernel/trace/trace.c
> > +++ b/kernel/trace/trace.c
...
> > @@ -1517,12 +1500,16 @@ lat_print_timestamp(struct trace_seq *s, unsigned long long abs_usecs,
> >  
> >  static const char state_to_char[] = TASK_STATE_TO_CHAR_STR;
> >  
> > -static void
> > -trace_seq_print_cont(struct trace_seq *s, struct trace_iterator *iter)
> > +/*
> > + * The message is supposed to contain an ending newline.
> > + * If the printing stops prematurely, try to add a newline of our own.
> > + */
> > +void trace_seq_print_cont(struct trace_seq *s, struct trace_iterator *iter)
> >  {
> >  	struct trace_array *tr = iter->tr;
> >  	struct trace_array_cpu *data = tr->data[iter->cpu];
> >  	struct trace_entry *ent;
> > +	bool ok = true;
> 
> hmm, since when did the kernel have type bool?

Good question. It seems to be used a lot. :-)

commit 6e21828743247270d09a86756a0c11702500dbfb
Author: Richard Knutsson <ricknu-0@...dent.ltu.se>
Date:   Sat Sep 30 23:27:11 2006 -0700

    [PATCH] Generic boolean
    
    This patch defines:
    * a generic boolean-type, named 'bool'
    * aliases to 0 and 1, named 'false' and 'true'
    
    Removing colliding definitions of 'bool', 'false' and 'true'.
    
    Signed-off-by: Richard Knutsson <ricknu-0@...dent.ltu.se>
    Signed-off-by: Andrew Morton <akpm@...l.org>
    Signed-off-by: Linus Torvalds <torvalds@...l.org>

-- 
Pekka Paalanen
http://www.iki.fi/pq/
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ