* [LTP] [PATCH 1/1] README: Mention -f param for strace
@ 2024-01-29 17:46 Petr Vorel
2024-01-30 12:37 ` Avinesh Kumar
0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2024-01-29 17:46 UTC (permalink / raw)
To: ltp
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,
probably obvious, but it does not harm to mention it.
Hopefully users will find it.
Kind regards,
Petr
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 6147c5f6f..abbea8f4f 100644
--- a/README.md
+++ b/README.md
@@ -215,12 +215,13 @@ SUSE also publishes a
[smaller LTP container](https://registry.opensuse.org/cgi-bin/cooverview?srch_term=project%3D%5Ebenchmark+container%3D.*)
that is not based on the Containerfile.
-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`.
Developers corner
=================
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 1/1] README: Mention -f param for strace
2024-01-29 17:46 [LTP] [PATCH 1/1] README: Mention -f param for strace Petr Vorel
@ 2024-01-30 12:37 ` Avinesh Kumar
2024-01-30 13:14 ` Petr Vorel
0 siblings, 1 reply; 5+ messages in thread
From: Avinesh Kumar @ 2024-01-30 12:37 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
Hi Petr,
On Monday, January 29, 2024 6:46:47 PM CET Petr Vorel wrote:
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> Hi,
>
> probably obvious, but it does not harm to mention it.
> Hopefully users will find it.
>
> Kind regards,
> Petr
>
> README.md | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/README.md b/README.md
> index 6147c5f6f..abbea8f4f 100644
> --- a/README.md
> +++ b/README.md
> @@ -215,12 +215,13 @@ SUSE also publishes a
> [smaller LTP
> container](https://registry.opensuse.org/cgi-bin/cooverview?srch_term=proje
> ct%3D%5Ebenchmark+container%3D.*) that is not based on the Containerfile.
>
> -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
Reviewed-by: Avinesh Kumar <akumar@suse.de>
>
> Developers corner
> =================
Thanks,
Avinesh
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 1/1] README: Mention -f param for strace
2024-01-30 12:37 ` Avinesh Kumar
@ 2024-01-30 13:14 ` Petr Vorel
2024-01-30 15:29 ` Avinesh Kumar
0 siblings, 1 reply; 5+ messages in thread
From: Petr Vorel @ 2024-01-30 13:14 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 1/1] README: Mention -f param for strace
2024-01-30 13:14 ` Petr Vorel
@ 2024-01-30 15:29 ` Avinesh Kumar
2024-01-31 18:13 ` Petr Vorel
0 siblings, 1 reply; 5+ messages in thread
From: Avinesh Kumar @ 2024-01-30 15:29 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
On Tuesday, January 30, 2024 2:14:29 PM CET Petr Vorel wrote:
> 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.
yes, or maybe-
To trace the test with strace, use strace with `-f` option to enable tracing
of forked processes also.
Thanks,
Avinesh
>
> Kind regards,
> Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [LTP] [PATCH 1/1] README: Mention -f param for strace
2024-01-30 15:29 ` Avinesh Kumar
@ 2024-01-31 18:13 ` Petr Vorel
0 siblings, 0 replies; 5+ messages in thread
From: Petr Vorel @ 2024-01-31 18:13 UTC (permalink / raw)
To: Avinesh Kumar; +Cc: ltp
Hi Avinesh,
...
> > should I wrote this?
> > To trace test with strace use call strace with `-f` parameter.
> yes, or maybe-
> To trace the test with strace, use strace with `-f` option to enable tracing
> of forked processes also.
Make sense, used this and merged.
Thank you!
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-01-31 18:14 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 17:46 [LTP] [PATCH 1/1] README: Mention -f param for strace Petr Vorel
2024-01-30 12:37 ` Avinesh Kumar
2024-01-30 13:14 ` Petr Vorel
2024-01-30 15:29 ` Avinesh Kumar
2024-01-31 18:13 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox