lkml.org 
[lkml]   [2013]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 05/14] perf tools: Introduce new 'ftrace' tool
On Tue, Apr 23, 2013 at 05:31:03PM +0900, Namhyung Kim wrote:
> From: Namhyung Kim <namhyung.kim@lge.com>
>

SNIP

> +out:
> + put_tracing_file(file);
> + return ret;
> +}
> +
> +static int reset_tracing_files(struct perf_ftrace *ftrace __maybe_unused)
> +{
> + if (write_tracing_file("tracing_on", "0") < 0)
> + return -1;
> +
> + if (write_tracing_file("current_tracer", "nop") < 0)
> + return -1;
> +
> + if (write_tracing_file("set_ftrace_pid", " ") < 0)
> + return -1;

I think we want to reset set_ftrace_pid file as well
probably to -1..

if I'm tracing command with this file having wrong CPU(s)
I dont get any data..

jirka


\
 
 \ /
  Last update: 2013-04-24 16:42    [W:0.283 / U:2.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site