From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756282Ab0JUKMV (ORCPT ); Thu, 21 Oct 2010 06:12:21 -0400 Received: from casper.infradead.org ([85.118.1.10]:42589 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753406Ab0JUKMS convert rfc822-to-8bit (ORCPT ); Thu, 21 Oct 2010 06:12:18 -0400 Subject: Re: Ftrace: can trace kthread? From: Peter Zijlstra To: "Figo.zhang" Cc: Yong Zhang , Li Zefan , "linux-kernel@vger.kernel.org" , Steven Rostedt In-Reply-To: <1287651542.2237.17.camel@myhost> References: <1287647732.2237.7.camel@myhost> <1287649283.2237.8.camel@myhost> <1287650668.2237.12.camel@myhost> <1287651542.2237.17.camel@myhost> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Thu, 21 Oct 2010 12:12:07 +0200 Message-ID: <1287655927.3488.100.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.30.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2010-10-21 at 16:59 +0800, Figo.zhang wrote: > > I just > > echo 0 > tracing_enabled > > echo function > current_tracer > > echo 374(pid of flush) > set_ftrace_pid > > echo 1 > tracing_enabled > > wait some time > > echo 0 > tracing_enabled > > cat trace > > > > So I think this answer your question "could kthread be traced?" > > i do it the same of you. > but i canot trace nothing. Your initial attempt had: echo kswapd > /sys/kernel/debug/tracing/set_graph_function have you reset that state?