lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 21 Oct 2010 16:10:36 +0800
From:	Yong Zhang <yong.zhang0@...il.com>
To:	"Figo.zhang" <zhangtianfei@...dcoretech.com>
Cc:	Li Zefan <lizf@...fujitsu.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Steven Rostedt <srostedt@...hat.com>
Subject: Re: Ftrace: can trace kthread?

On Thu, Oct 21, 2010 at 3:55 PM, Figo.zhang
<zhangtianfei@...dcoretech.com> wrote:
> hi,
>
> is it ftrace in 2.6.36-rc8 can trace the kthread?

How about the set_ftrace_pid interface?

Thanks,
Yong

> i want to trace the
> kswapd/bdi_writeback_thread, but not success. i am sure that kswapd is
> running, because i let the system eat huge memory. i can trace some
> function such as __do_fault. what is issue on it?
>
> Best,
> Figo.zhang
>
>
> here is my ftrace script.
> i = 1
> while true;
> do
>        echo 1 > /proc/sys/kernel/ftrace_enabled
>        echo function_graph > /sys/kernel/debug/tracing/current_tracer
>        echo kswapd > /sys/kernel/debug/tracing/set_graph_function
>        echo 1 > /sys/kernel/debug/tracing/tracing_on
>        echo 1 > /sys/kernel/debug/tracing/tracing_enabled
>        sleep 1
>        echo 0 > /sys/kernel/debug/tracing/tracing_enabled
>        cat /sys/kernel/debug/tracing/trace > ftrace.kswap.log.$i
>
>        let i=i+1;
>
> done
>
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@...r.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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ