All of lore.kernel.org
 help / color / mirror / Atom feed
From: Herman ten Brugge <hermantenbrugge@home.nl>
To: GeunSik Lim <leemgs1@gmail.com>
Cc: linux-rt-users@vger.kernel.org
Subject: Re: Analyze sched_switch ftrace data with vcd viewer
Date: Fri, 12 Jun 2009 16:29:57 +0200	[thread overview]
Message-ID: <4A326665.3040606@home.nl> (raw)
In-Reply-To: <49b7c2350906112312o1ca2aefeq658e6e645021c63f@mail.gmail.com>

I tried your vcd file and I can view it with no problems. Did you select 
all signals and then press the insert button in gtkwave?
I run fedora 10 with gtkwave version 'GTKWave Analyzer v3.1.13 
(w)1999-2008 BSI'.

    Herman.


GeunSik Lim wrote:
> On Fri, Jun 5, 2009 at 3:58 AM, Herman ten
> Brugge<hermantenbrugge@home.nl> wrote:
>   
>> I have written some code to convert the ascii sched_switch output to
>> vcd format (value change data). Now it is possible to view the context
>> switches in a vcd viewer. I personally use gtkwave because it is free
>> and is present in the fedora repository.
>> To use this program first make a ftrace file with something like:
>>     
>
>
> Hi Herman ten Brugge,
>
> Thansk you for sharing your code to visualize  sched_switch ftrace data
> with vcd viewer like GTKWave.
>
> This is my H/W requirements.
> * core: Core2 Quad Q9300
> * Memory: DDR3G
> * Kernel: 2.6.29-3.fc10.i686.smp kernel
>
> I tested in my fedora 9 distribution with below methods.
> But I can not show normal result using "#> gtkware trace.vcd" command.
> * screenshot : http://blogfiles5.naver.net/data43/2009/6/12/228/gtkwave-vcd-20090609.1503-invain.png
>
>
> It seems that you have to update your code for stablization and
> functions continually.
>
>
> F-Geunsik#> wget http://www.osadl.org/uploads/media/sched_switch-0.1.tgz
> F-Geunsik#> tar -zxvf sched_switch-0.1.tgz
> F-Geunsik#> cd sched_switch-0.1
> F-Geunsik#> make
> F-Geunsik#> cp ./sched_switch /usr/bin/
> F-Geunsik#> cd /syskerneldebug/tracing/
> F-Geunsik#> echo sched_switch >current_tracer
> F-Geunsik#> echo 1 >tracing_enable
> F-Geunsik#> chrt -f 20 sleep 5
> F-Geunsik#> cyclictest -t 5 -p 99 -d 60 -i 1000
> F-Geunsik#> echo 0 >tracing_enable
> F-Geunsik#> cat trace >/tmp/trace.txt
> F-Geunsik#> /usr/bin/sched_switch /tmp/trace.txt /tmp/trace.vcd
> F-Geunsik#> yum install gtkwave
> F-Geunsik#> gtkwave /tmp/trace.vcd
>
>
>
>
>   


  reply	other threads:[~2009-06-12 14:29 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-04 18:58 Analyze sched_switch ftrace data with vcd viewer Herman ten Brugge
     [not found] ` <4A284185.4010606@osadl.org>
2009-06-05 17:12   ` Herman ten Brugge
2009-06-11 12:49     ` Carsten Emde
2009-06-12  6:12 ` GeunSik Lim
2009-06-12 14:29   ` Herman ten Brugge [this message]
2009-06-12 14:53   ` Carsten Emde
2009-06-13 15:57     ` GeunSik Lim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A326665.3040606@home.nl \
    --to=hermantenbrugge@home.nl \
    --cc=leemgs1@gmail.com \
    --cc=linux-rt-users@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.