[LTP] [PATCH 1/1] README: Mention -f param for strace
Petr Vorel
pvorel@suse.cz
Tue Jan 30 14:14:29 CET 2024
Hi Avinesh,
> Hi Petr,
> > -Debugging with gdb
> > -==================
> > +Debugging with gdb and strace
> > +=============================
> > The new test library runs the actual test, i.e. the `test()` function in a
> > forked process. To get stack trace of a crashing test in gdb it's needed to
> > [`set follow-fork-mode
> > child`](https://ftp.gnu.org/old-gnu/Manuals/gdb/html_node/gdb_25.html). +To
> > trace test with strace use `-f`.
> For a second I thought ltp tests has `-f` option.
> So maybe if we can make it absolutely clear, or maybe it is just me. :D
thanks for having a look!
There is currently no -f parameter, but sure, it could be in the future.
./fanotify01 -h # shows no -f parameter
./fanotify01 -f
...
tst_test.c:688: TBROK: Invalid option
But I meant '-f' as strace parameter, e.g.:
strace -f ./fanotify01
should I wrote this?
To trace test with strace use call strace with `-f` parameter.
Kind regards,
Petr
More information about the ltp
mailing list