From mboxrd@z Thu Jan 1 00:00:00 1970 From: zhaolei@cn.fujitsu.com (Zhaolei) Date: Wed, 22 Oct 2008 18:25:54 +0800 Subject: [ltt-dev] [PATCH] Change to use GET_CHANNEL_INDEX(metadata) to get index of metadata Message-ID: <48FEFFB2.7080103@cn.fujitsu.com> It works faster. Signed-off-by: Zhao Lei --- 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