From: zhaolei@cn.fujitsu.com (Zhaolei)
Subject: [ltt-dev] [PATCH] Change to use GET_CHANNEL_INDEX(metadata) to get index of metadata
Date: Wed, 22 Oct 2008 18:25:54 +0800 [thread overview]
Message-ID: <48FEFFB2.7080103@cn.fujitsu.com> (raw)
It works faster.
Signed-off-by: Zhao Lei <zhaolei at cn.fujitsu.com>
---
ltt/ltt-marker-control.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ltt/ltt-marker-control.c b/ltt/ltt-marker-control.c
index 28da488..cbdd4c2 100644
--- a/ltt/ltt-marker-control.c
+++ b/ltt/ltt-marker-control.c
@@ -478,7 +478,7 @@ static int do_set_channel(const char *name, const char *pname,
/*
* Do not let userspace mess with core markers.
*/
- if (user && get_channel_index_from_name("metadata") == new_channel)
+ if (user && GET_CHANNEL_INDEX(metadata) == new_channel)
return -EPERM;
ltt_lock_traces();
--
1.5.5.3
next reply other threads:[~2008-10-22 10:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 10:25 Zhaolei [this message]
2008-10-24 14:32 ` Mathieu Desnoyers
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=48FEFFB2.7080103@cn.fujitsu.com \
--to=zhaolei@cn.fujitsu.com \
/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