Running with arguments and valgrind

2,540 views
Skip to first unread message

Shivkumar Muthukumar

unread,
Jun 5, 2009, 4:10:25 PM6/5/09
to ns-3-users
Hi,

I would like to run my ns-3 application using valgrind. It also takes command line arguments. So the command looks like:

./waf --run "program_name --arg1=v1 --arg2=v2" --valgrind

The waf system mistakes the whole thing in the double quotes to be the program name and gives me an error:

program 'program_name --arg1=v1 --arg2=v2' not found; available programs are: [...]

I tried to make some fix in wutils.py but some other things start to break. I get target does not exist error. Can someone point a quick fix?

Thanks
Shivkumar

Gustavo Carneiro

unread,
Jun 5, 2009, 4:21:56 PM6/5/09
to ns-3-...@googlegroups.com
2009/6/5 Shivkumar Muthukumar <shivkumar.cm@gmail.com>
Hi,

I would like to run my ns-3 application using valgrind. It also takes command line arguments. So the command looks like:

./waf --run "program_name --arg1=v1 --arg2=v2" --valgrind


Try:

 ./waf --run program_name --command-template "valgrind %s --arg1=v1 --arg2=v2"




The waf system mistakes the whole thing in the double quotes to be the program name and gives me an error:

program 'program_name --arg1=v1 --arg2=v2' not found; available programs are: [...]

I tried to make some fix in wutils.py but some other things start to break. I get target does not exist error. Can someone point a quick fix?

Thanks
Shivkumar






--
Gustavo J. A. M. Carneiro
INESC Porto, Telecommunications and Multimedia Unit
"The universe is always one step beyond logic." -- Frank Herbert

Shivkumar Muthukumar

unread,
Jun 5, 2009, 4:33:17 PM6/5/09
to ns-3-...@googlegroups.com
Cool, works! Thanks.

- Shivkumar
Reply all
Reply to author
Forward
0 new messages