From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755440AbZLHIEW (ORCPT ); Tue, 8 Dec 2009 03:04:22 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753896AbZLHIEV (ORCPT ); Tue, 8 Dec 2009 03:04:21 -0500 Received: from cn.fujitsu.com ([222.73.24.84]:62384 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1753470AbZLHIEU (ORCPT ); Tue, 8 Dec 2009 03:04:20 -0500 Message-ID: <4B1E086E.7040001@cn.fujitsu.com> Date: Tue, 08 Dec 2009 16:03:58 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Frederic Weisbecker CC: Lai Jiangshan , Ingo Molnar , Steven Rostedt , LKML , Masami Hiramatsu Subject: Re: [PATCH 02/13] tracing: Extract calls to trace_define_common_fields() References: <4B1DC476.3030700@cn.fujitsu.com> <4B1DC49C.8000107@cn.fujitsu.com> <4B1DE5D4.4070805@cn.fujitsu.com> <20091208075731.GC4989@nowhere> In-Reply-To: <20091208075731.GC4989@nowhere> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> --- a/kernel/trace/trace_kprobe.c >>> +++ b/kernel/trace/trace_kprobe.c >>> @@ -1113,10 +1113,6 @@ static int kprobe_event_define_fields(struct ftrace_event_call *event_call) >>> struct kprobe_trace_entry field; >>> struct trace_probe *tp = (struct trace_probe *)event_call->data; >>> >>> - ret = trace_define_common_fields(event_call); >>> - if (!ret) >>> - return ret; >>> - >>> DEFINE_FIELD(unsigned long, ip, FIELD_STRING_IP, 0); >>> DEFINE_FIELD(int, nargs, FIELD_STRING_NARGS, 1); >>> /* Set argument names as fields */ >>> @@ -1131,10 +1127,6 @@ static int kretprobe_event_define_fields(struct ftrace_event_call *event_call) >>> struct kretprobe_trace_entry field; >>> struct trace_probe *tp = (struct trace_probe *)event_call->data; >>> >>> - ret = trace_define_common_fields(event_call); >>> - if (!ret) >>> - return ret; >>> - >>> DEFINE_FIELD(unsigned long, func, FIELD_STRING_FUNC, 0); >>> DEFINE_FIELD(unsigned long, ret_ip, FIELD_STRING_RETIP, 0); >>> DEFINE_FIELD(int, nargs, FIELD_STRING_NARGS, 1); >> "if (!ret)" is wrong. trace_define_common_fields() returns zero when success. >> So "unsigned long, func", "unsigned long, ret_ip" ...etc are NOT "defined" >> and filters can not be applied for trace_kprobe. >> >> Reviewed-by: Lai Jiangshan >> > > Oh right! > > Ok, I'm queueing this one for the tracing fixes. > Thanks! > This patch has dependency on the previous patch..So can you queue all other patches and send a pull request to Ingo? We're still in the early merge window, so those patches should be fine for .33. And as this patch fixes a bug "acidentally", the changelog needs a bit revision.