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: Tue,  9 Jun 2026 05:14:30 +0000	[thread overview]
Message-ID: <20260609051430.4154-1-linuxtestproject.agent@gmail.com> (raw)
In-Reply-To: <20260609041632.74427-2-praveen@linux.ibm.com>

Hi Praveen,

On Tue, Jun 9, 2026, Praveen K Pandey wrote:
> ftrace: Add common library for C implementation

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

> -INSTALL_TARGETS         := *.sh ftrace_stress/*
> +# Filter out ftrace_lib from standalone build targets
> +FILTER_OUT_MAKE_TARGETS := ftrace_lib

Removing INSTALL_TARGETS here means the ftrace_stress/* helper
scripts are no longer installed, but ftrace_stress_test.sh still
exists and depends on them (it is not converted until patch 4/5).
This breaks the shell-based stress test at this intermediate
commit.

Moving this removal to patch 5/5 (where the helper scripts are
actually deleted) would preserve bisectability.

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

> -ftrace_regression01	ftrace_regression01.sh
> -ftrace_regression02	ftrace_regression02.sh
> -ftrace-stress-test	ftrace_stress_test.sh 90
> +ftrace_regression01	ftrace_regression01
> +ftrace_regression02	ftrace_regression02
> +ftrace-stress-test	ftrace_stress_test

This patch converts only ftrace_regression01, but all three
runtest/tracing entries are updated to reference C binaries.
At this point ftrace_regression02 and ftrace_stress_test binaries
do not exist -- their .c files are added in patches 3/5 and 4/5
respectively.

After this commit, running ftrace_regression02 or ftrace-stress-test
from the runtest file will look for binaries that cannot be built.
Each conversion patch should only update its own runtest entry.

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

> +static struct stress_test stress_tests[] = {
> +	{"current_tracer", "current_tracer", stress_current_tracer, 0},
> +	{"trace_pipe", "trace_pipe", stress_trace_pipe, 0},
> +	{"set_event", "events/enable", stress_set_event, 0},
> +	{"buffer_size_kb", "buffer_size_kb", stress_buffer_size, 0},
> +	{"tracing_on", "tracing_on", stress_tracing_on, 0},
> +	{"trace_options", "trace_options", stress_trace_options, 0},
> +	{"set_ftrace_filter", "set_ftrace_filter", stress_set_ftrace_filter, 0},

The original shell test exercised 17 ftrace interfaces concurrently:
trace_pipe, current_tracer, ftrace_enabled,
function_profile_enabled, set_event, set_ftrace_pid,
stack_max_size, stack_trace, trace, trace_clock, trace_options,
trace_stat, tracing_enabled, tracing_max_latency, tracing_on,
buffer_size_kb, tracing_cpumask, and set_ftrace_filter.

The C version implements 7 of these, dropping 10 stress targets.
Is the reduced coverage intentional? If so, it would be good to
note it in the commit message.

>  * Converted to C by: Praveen K Pandey <praveen@linux.ibm.com>
>  */
>
> +/*\
>  * ...
>  *    The test creates multiple threads that stress test different
>  *    ftrace interfaces concurrently for a specified duration.
>  *
>  *    Signed-off-by: Praveen K Pandey <praveen@linux.ibm.com>

The commit message states "Test timeout set to 300 seconds", but
the code has `.timeout = DEFAULT_TEST_DURATION + 30` which
evaluates to 90, not 300.

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-09  5:14 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-09  4:16 [LTP] [PATCH v6 0/5] ftrace: Convert shell tests to C Praveen K Pandey
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   ` linuxtestproject.agent [this message]
2026-06-09  4:16 ` [LTP] [PATCH v6 2/5] ftrace: Convert ftrace_regression01.sh to C Praveen K Pandey
2026-06-09  4:16 ` [LTP] [PATCH v6 3/5] ftrace: Convert ftrace_regression02.sh " Praveen K Pandey
2026-06-09  4:16 ` [LTP] [PATCH v6 4/5] ftrace: Convert ftrace_stress_test.sh " Praveen K Pandey
2026-06-09  4:16 ` [LTP] [PATCH v6 5/5] ftrace: Remove obsolete shell test files Praveen K Pandey
  -- strict thread matches above, loose matches on Subject: below --
2026-06-08 13:25 [LTP] [PATCH v5 1/5] ftrace: Add common library for C implementation 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-07  4:41 [LTP] [LTP PATCH v3 1/5] " Praveen K Pandey
2026-06-07  8:02 ` [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=20260609051430.4154-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.