All of lore.kernel.org
 help / color / mirror / Atom feed
From: linuxtestproject.agent@gmail.com
To: Praveen K Pandey <praveen@linux.ibm.com>
Cc: ltp@lists.linux.it
Subject: Re: [LTP] ftrace: Add common library for C implementation
Date: Sun,  7 Jun 2026 08:02:05 +0000	[thread overview]
Message-ID: <20260607080205.4091-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260607044201.22859-2-praveen@linux.ibm.com>

Hi Praveen,

On Sun, 07 Jun 2026 10:11:56 +0530, Praveen K Pandey wrote:
> ftrace: Add common library for C implementation

--- [PATCH 1/5] ---

> +tracing_path = malloc(PATH_MAX);
> +if (!tracing_path)
> +tst_brk(TBROK | TERRNO, "malloc failed");
> +
> +snprintf(tracing_path, PATH_MAX, "%s/tracing", debugfs_path);

The blank line between `tst_brk()` and `snprintf()` has a trailing
tab. The same pattern appears on many blank lines throughout
ftrace_lib.c (at least lines 56, 78, 93, 97, 111, 115, 118, 121,
135, 138, 141, 150, 154, 157, 160, 163, 171, 175, 178 and more).
`make check` would catch all of these.

--- [PATCH 2/5] ---

The commit body says:

  This test validates that function tracing works correctly by:
  - Enabling function tracing
  - Verifying trace output contains function calls
  - Checking for kernel crashes or hangs

The test does none of that. It enables the userstacktrace option
together with page fault events and repeats the loop to check the
kernel does not panic (regression for commit 1dbd195). The body
needs to describe what the code actually does.

--- [PATCH 3/5] ---

Same problem with the commit body:

  This test validates that function graph tracing works correctly by:
  - Enabling function_graph tracer
  - Verifying trace output contains function graph format
  - Checking for kernel crashes or hangs

The test verifies that the signal:signal_generate tracepoint exposes
'grp=' and 'res=' fields. This description appears to belong to a
different test.

> +/* This test requires kernel >= 3.2 */
> +if (tst_kvercmp(3, 2, 0) < 0)
> +tst_brk(TCONF, "This test requires kernel >= 3.2.0");

Kernel version gating must use `.min_kver = "3.2"` in
`struct tst_test` rather than an inline `tst_kvercmp()` call.
See c-tests rule 9.

--- [PATCH 4/5] ---

> +/* Check for test duration parameter */
> +if (tst_parse_int(getenv("LTP_TIMEOUT_MUL"), &test_duration,
> +  1, INT_MAX))
> +test_duration = DEFAULT_TEST_DURATION;

`LTP_TIMEOUT_MUL` is a floating-point CI timeout multiplier (e.g.
"1.5"), not an integer duration. `tst_parse_int()` will silently
fail for float values, leaving the duration at 60 s. If it happens
to be set to a small integer like "2", the stress run would last
only 2 s instead of 60 s. Either drop this override or use a
dedicated environment variable for duration control.

Verdict: Needs revision

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

  reply	other threads:[~2026-06-07  8:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-07  4:41 [LTP] [LTP PATCH v3 0/5] ftrace: Convert shell tests to C Praveen K Pandey
2026-06-07  4:41 ` [LTP] [LTP PATCH v3 1/5] ftrace: Add common library for C implementation Praveen K Pandey
2026-06-07  8:02   ` linuxtestproject.agent [this message]
2026-06-07  4:41 ` [LTP] [LTP PATCH v3 2/5] ftrace: Convert ftrace_regression01.sh to C Praveen K Pandey
2026-06-07  4:41 ` [LTP] [LTP PATCH v3 3/5] ftrace: Convert ftrace_regression02.sh " Praveen K Pandey
2026-06-07  4:41 ` [LTP] [LTP PATCH v3 4/5] ftrace: Convert ftrace_stress_test.sh " Praveen K Pandey
2026-06-07  4:42 ` [LTP] [LTP PATCH v3 5/5] ftrace: Remove obsolete shell test files Praveen K Pandey
  -- strict thread matches above, loose matches on Subject: below --
2026-06-09  4:16 [LTP] [PATCH v6 1/5] ftrace: Add common library for C implementation Praveen K Pandey
2026-06-09  5:14 ` [LTP] " linuxtestproject.agent
2026-06-08 13:25 [LTP] [PATCH v5 1/5] " Praveen K Pandey
2026-06-08 14:39 ` [LTP] " linuxtestproject.agent
2026-06-08  5:49 [LTP] [LTP PATCH v4 1/5] " Praveen K Pandey
2026-06-08  9:01 ` [LTP] " linuxtestproject.agent
2026-06-06 19:58 [LTP] [LTP PATCH v2 1/5] " Praveen K Pandey
2026-06-06 21:11 ` [LTP] " linuxtestproject.agent
2026-06-06 14:31 [LTP] [LTP PATCH 1/5] " Praveen K Pandey
2026-06-06 15:26 ` [LTP] " linuxtestproject.agent

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=20260607080205.4091-1-linuxtestproject.agent@gmail.com \
    --to=linuxtestproject.agent@gmail.com \
    --cc=ltp@lists.linux.it \
    --cc=praveen@linux.ibm.com \
    /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.