Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1205211 > unrolled thread

Re: [PATCH] ftrace: Calculate the correct dyn_ftrace number to report to the userspace

Started byMinfei Huang <mhuang@redhat.com>
First post2015-08-11 17:30 +0200
Last post2015-08-11 18:00 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] ftrace: Calculate the correct dyn_ftrace number to  report to the userspace Minfei Huang <mhuang@redhat.com> - 2015-08-11 17:30 +0200
    Re: [PATCH] ftrace: Calculate the correct dyn_ftrace number to  report to the userspace Steven Rostedt <rostedt@goodmis.org> - 2015-08-11 18:00 +0200

#1205211 — Re: [PATCH] ftrace: Calculate the correct dyn_ftrace number to report to the userspace

FromMinfei Huang <mhuang@redhat.com>
Date2015-08-11 17:30 +0200
SubjectRe: [PATCH] ftrace: Calculate the correct dyn_ftrace number to report to the userspace
Message-ID<pWjEZ-DK-7@gated-at.bofh.it>
Ping.

Could someone help to review this patch?

Thanks
Minfei

On 07/22/15 at 11:13am, Minfei Huang wrote:
> From: Minfei Huang <mnfhuang@gmail.com>
> 
> Now, ftrace only calculate the dyn_ftrace number in the adding
> breakpoint loop, not in adding update and finish update loop.
> 
> Calculate the correct dyn_ftrace, once ftrace reports the failure message
> to the userspace.
> 
> Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
> ---
>  arch/x86/kernel/ftrace.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c
> index 8b7b0a5..311bcf3 100644
> --- a/arch/x86/kernel/ftrace.c
> +++ b/arch/x86/kernel/ftrace.c
> @@ -556,6 +556,7 @@ void ftrace_replace_code(int enable)
>  	run_sync();
>  
>  	report = "updating code";
> +	count = 0;
>  
>  	for_ftrace_rec_iter(iter) {
>  		rec = ftrace_rec_iter_record(iter);
> @@ -563,11 +564,13 @@ void ftrace_replace_code(int enable)
>  		ret = add_update(rec, enable);
>  		if (ret)
>  			goto remove_breakpoints;
> +		count++;
>  	}
>  
>  	run_sync();
>  
>  	report = "removing breakpoints";
> +	count = 0;
>  
>  	for_ftrace_rec_iter(iter) {
>  		rec = ftrace_rec_iter_record(iter);
> @@ -575,6 +578,7 @@ void ftrace_replace_code(int enable)
>  		ret = finish_update(rec, enable);
>  		if (ret)
>  			goto remove_breakpoints;
> +		count++;
>  	}
>  
>  	run_sync();
> -- 
> 2.4.0
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1205237

FromSteven Rostedt <rostedt@goodmis.org>
Date2015-08-11 18:00 +0200
Message-ID<pWk84-1c5-39@gated-at.bofh.it>
In reply to#1205211
On Tue, 11 Aug 2015 23:32:38 +0800
Minfei Huang <mhuang@redhat.com> wrote:

> Ping.
> 
> Could someone help to review this patch?
> 

I'll take a look at it. I'm also getting ready to go to Seattle for
LinuxCon/Plumbers. This isn't urgent. If there's nothing wrong with it,
I'll try to get it into 4.3.

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web