mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Eyal Lebedinsky <eyal@eyal.emu.id.au>
To: Karim Yaghmour <karym@opersys.com>
Cc: linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: Linux Trace Toolkit ready for 2.5
Date: Sat, 13 Apr 2002 08:34:59 +1000	[thread overview]
Message-ID: <3CB76113.ABEAA49E@eyal.emu.id.au> (raw)
In-Reply-To: <3CB61523.89BE3422@opersys.com>

Karim Yaghmour wrote:
> 
> I have prepared a 2.5.7 patch for the Linux Trace Toolkit.
> 
> #define TRACE_SCHEDCHANGE(OUT, IN) \
>            do \
>            {\
>            trace_schedchange sched_event;\
>            sched_event.out       = OUT->pid;\
>            sched_event.in        = (uint32_t) IN;\
>            sched_event.out_state = OUT->state; \
>            trace_event(TRACE_EV_SCHEDCHANGE, &sched_event);\
>            } while(0);

The macro body should not have the terminating semicolon. This is
the whole point of this trick, allowing it to be used safely in if
statements like a function.

--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>

  reply	other threads:[~2002-04-12 22:35 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-11 22:58 Karim Yaghmour
2002-04-12 22:34 ` Eyal Lebedinsky [this message]
2002-04-13  0:31   ` Karim Yaghmour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CB76113.ABEAA49E@eyal.emu.id.au \
    --to=eyal@eyal.emu.id.au \
    --cc=karym@opersys.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®