All of lore.kernel.org
 help / color / mirror / Atom feed
From: Insop Song <insop.song@gmail.com>
To: insop.song@gmail.com, bruce.ashfield@gmail.com,
	dvhart@linux.intel.com, linux-yocto@yoctoproject.org,
	yocto@yoctoproject.org
Subject: [meta-realtime][PATCH 0/1] create a script directory and add a script to run test program and collect data
Date: Tue, 19 Mar 2013 04:14:19 -0700	[thread overview]
Message-ID: <cover.1363691191.git.insop.song@gmail.com> (raw)
In-Reply-To: <insop.song@gmail.com>


    create a script directory and add a script to run test program and
    collect data

    - test scripts will help to run and collect the data, automate the test and re-producible by others
    
    - run_rt-app.py runs rt-app on the target machine and collects the
      output log to host
    
    - how to run:
    $ fab -f run_rt-app.py run_app
    
    Note: requires fabric (python program) on the host

--------------
Run example
--------------


 $ fab -f run_rt-app.py run_app
[root@192.168.1.78] Executing task 'run_app'

===========================================================
1. Conecting remote : root@192.168.1.78
===========================================================

running script on host [fri2], OS[Linux fri2 3.8.1-yocto-standard #1 SMP PREEMPT Sat Mar 16 03:20:59 PDT 2013 i686 GNU/Linux]

===========================================================
2. Running rt-app 1 times..
===========================================================

[root@192.168.1.78] run: echo "test log (period = 100000, execution time 20000) run 1 times on each 10 sec 

" > /home/root/rt-app_run_log-2013-03-19-03-52.txt
[root@192.168.1.78] run: /usr/bin/rt-app -t 100000:20000:d -D 10 >> /home/root/rt-app_run_log-2013-03-19-03-52.txt
[root@192.168.1.78] out: [rt-app] <notice> [0] Using SCHED_DEADLINE policy:
[root@192.168.1.78] out: [rt-app] <notice> [0] starting thread with period: 100000, exec: 20000,deadline: 100000, priority: 10
[root@192.168.1.78] out: [rt-app] <notice> [0] Locking pages in memory
[root@192.168.1.78] out: [rt-app] <notice> [0] Exiting.
[root@192.168.1.78] out: 

[localhost] local: /usr/bin/scp root@192.168.1.78:/home/root/rt-app_run_log-2013-03-19-03-52.txt .
rt-app_run_log-2013-03-19-03-52.txt                                                                                                100% 7552     7.4KB/s   00:00    

==============================================================================
3. Run finished, and log file rt-app_run_log-2013-03-19-03-52.txt is copied to host.
==============================================================================


Done.
Disconnecting from root@192.168.1.78... done.


--------------
Log file output
--------------

cat /home/root/rt-app_run_log-2013-03-19-03-52.txt
test log (period = 100000, execution time 20000) run 1 times on each 10 sec 


#idx	period	min_et	max_et	rel_st	start		end		deadline	dur.	slack	Budget	Used Budget
0	100000	20000	20000	33061	1859244267	1859264275	1859344264	20008	79989
0	100000	20000	20000	133176	1859344382	1859364389	1859444264	20007	79876
0	100000	20000	20000	233177	1859444383	1859464391	1859544264	20009	79873
0	100000	20000	20000	333174	1859544380	1859564389	1859644264	20009	79875
0	100000	20000	20000	433186	1859644392	1859664402	1859744264	20010	79862
...
0	100000	20000	20000	9533182	1868744388	1868764398	1868844264	20009	79867
0	100000	20000	20000	9633185	1868844391	1868864400	1868944264	20010	79864
0	100000	20000	20000	9733182	1868944388	1868964398	1869044264	20010	79867
0	100000	20000	20000	9833141	1869044347	1869064356	1869144264	20009	79908
0	100000	20000	20000	9933162	1869144368	1869164375	1869244264	20007	79889
$

Insop Song (1):
  create a script directory and add a script to run test program and   
     collect data

 docs/00-INDEX         |    4 +--
 docs/00-README        |    6 ++--
 scripts/README        |    1 +
 scripts/run_rt-app.py |   88 +++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 94 insertions(+), 5 deletions(-)
 create mode 100644 scripts/README
 create mode 100644 scripts/run_rt-app.py

-- 
1.7.9.5



             reply	other threads:[~2013-03-19 11:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-19 11:14 Insop Song [this message]
2013-03-19 11:14 ` [meta-realtime][PATCH 1/1] create a script directory and add a script to run test program and collect data Insop Song
2013-03-19 18:41   ` [linux-yocto] " Bruce Ashfield
2013-03-19 20:16     ` Insop Song

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=cover.1363691191.git.insop.song@gmail.com \
    --to=insop.song@gmail.com \
    --cc=bruce.ashfield@gmail.com \
    --cc=dvhart@linux.intel.com \
    --cc=linux-yocto@yoctoproject.org \
    --cc=yocto@yoctoproject.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.