Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756211AbZDFODS (ORCPT ); Mon, 6 Apr 2009 10:03:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754751AbZDFODD (ORCPT ); Mon, 6 Apr 2009 10:03:03 -0400 Received: from wf-out-1314.google.com ([209.85.200.173]:56063 "EHLO wf-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754621AbZDFODB (ORCPT ); Mon, 6 Apr 2009 10:03:01 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=JhMWc2OGoIXNBLX6bCnJW7AMIs4NZIywVLZle4pnpRXo4wOcY1MOh/4KRdbLfDZQCF uqAFVuPAsl2/e41wVazzSwuzRvkVk2SFiVc85hHnSXazXqauedML0IrO/po0YkGL+MDo wybHcIlljVS9jaRFbcNR86M8pjNHa5EoQRimQ= MIME-Version: 1.0 Date: Mon, 6 Apr 2009 23:02:59 +0900 Message-ID: <49b7c2350904060702j3f725a45ub5e7d3ee3af883c1@mail.gmail.com> Subject: [PATCH] Update old Mini-HOWTO for ftrace From: GeunSik Lim To: Steven Rostedt , Ingo Molnar Cc: rt-users , "linux-kernel@vger.kernel.org" Content-Type: multipart/mixed; boundary=000e0cd311a21c6b1d0466e35b29 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 5429 Lines: 110 --000e0cd311a21c6b1d0466e35b29 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Dear Steven, The author of ftrace(Internal kernel Function Tracer) feature renamed the ftrace tracer to function to avoid further confusion between the ftrace infrastructure and the function tracer on Oct-20, 2008. But, Update of Mini-HOWTO document are still not working . Most of the developers often utilize "/debug/tracing/README" file as Mini-HOWTO. They will confuse definition and usage about ftrace between README(ftrace) file and available_tracers(function) file after linux-2.6.27 like me. And, I want you to append "chrt -f 5 sleep 1" command as simple example for latency. Signed-off-by: GeunSik Lim Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar --- kernel/trace/trace.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index a0174a4..15f0eec 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -2358,7 +2358,7 @@ static const char readme_msg[] = "# mkdir /debug\n" "# mount -t debugfs nodev /debug\n\n" "# cat /debug/tracing/available_tracers\n" - "wakeup preemptirqsoff preemptoff irqsoff ftrace sched_switch none\n\n" + "wakeup preemptirqsoff preemptoff irqsoff function sched_switch none\n\n" "# cat /debug/tracing/current_tracer\n" "none\n" "# echo sched_switch > /debug/tracing/current_tracer\n" @@ -2368,6 +2368,7 @@ static const char readme_msg[] = "noprint-parent nosym-offset nosym-addr noverbose\n" "# echo print-parent > /debug/tracing/trace_options\n" "# echo 1 > /debug/tracing/tracing_enabled\n" + "# chrt -f 5 sleep 1\n" "# cat /debug/tracing/trace > /tmp/trace.txt\n" "echo 0 > /debug/tracing/tracing_enabled\n" ; -- Regards, GeunSik Lim -- 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/ --000e0cd311a21c6b1d0466e35b29 Content-Type: application/octet-stream; name="update-minihowto-ftrace.patch" Content-Disposition: attachment; filename="update-minihowto-ftrace.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_ft7rotyk0 QXV0aG9yOiBHZXVuU2lrICBMaW08bGVlbWdzMUBnbWFpbC5jb20+CkRhdGU6ICAgTW9uIEFwciA2 IDIyOjQ4OjE2IDIwMDkgKzA5MDAKCiAgICBbUEFUQ0hdIFVwZGF0ZSBNaW5pLUhPV1RPIGZvciBm dHJhY2UKICAgIAogICAgVGhlIGF1dGhvciBvZiBmdHJhY2UoSW50ZXJuYWwga2VybmVsI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y90cmFjaW5nL3RyYWNlX29w dGlvbnNcbiIKICAgICAgICAiIyBlY2hvIDEgPiAvZGVidWcvdHJhY2luZy90cmFjaW5nX2VuYWJs ZWRcbiIKKyAgICAgICAiIyBjaHJ0IC1mIDUgc2xlZXAgMVxuIgogICAgICAgICIjIGNhdCAvZGVi dWcvdHJhY2luZy90cmFjZSA+IC90bXAvdHJhY2UudHh0XG4iCiAgICAgICAgImVjaG8gMCA+IC9k ZWJ1Zy90cmFjaW5nL3RyYWNpbmdfZW5hYmxlZFxuIgogOwoKCg== --000e0cd311a21c6b1d0466e35b29-- -- 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/