[LTP] [PATCH] lib: tst_kconfig: Add runtime checks

Petr Vorel pvorel@suse.cz
Fri Feb 6 11:31:21 CET 2026


> Hi!
> > > > > utsname01.c:39: TDEBUG: mmap((nil), 64, PROT_READ | PROT_WRITE(3), 33, -1, 0)
> > > > > utsname01.c:40: TDEBUG: mmap((nil), 64, PROT_READ | PROT_WRITE(3), 33, -1, 0)

> > > Maybe we need TTRACE that would print syscall tracing like that and
> > > TDEBUG for the rest of the messages.

> > I suppose TTRACE would be printed only for test process and not for the library,
> > right?

> Yes.

> > And it'd be enabled only for debugging (existing -D or
> > LTP_ENABLE_DEBUG=1):

> > if (ttype == TTRACE && context->lib_pid == getpid())
> > 	return;

> > Other would we need a new switch and variable? (e.g. -T and
> > LTP_ENABLE_TRACING_DEBUG=1)

> I would go for LTP_ENABLE_TRACING=1.
OK.
+ some switch I guess (I suggest -T).

Kind regards,
Petr


More information about the ltp mailing list