> diff --git a/samples/bpf/memcg.bpf.c b/samples/bpf/memcg.bpf.c
> new file mode 100644
> index 000000000000..e611ac0e641a
> --- /dev/null
> +++ b/samples/bpf/memcg.bpf.c
[ ... ]
> +SEC("tp/memcg/count_memcg_events")
> +int
> +handle_count_memcg_events(struct trace_event_raw_memcg_rstat_events *ctx)
> +{
> + u32 key = 0;
> + struct AggregationData *data;
> + u64 current_ts;
> +
> + if (ctx->id != local_config.high_cgroup_id ||
> + (ctx->item != PGFAULT))
^^^^^^^
The BPF code monitors PGFAULT events here.
> diff --git a/samples/bpf/memcg.c b/samples/bpf/memcg.c
> new file mode 100644
> index 000000000000..0c47ed53f6ae
> --- /dev/null
> +++ b/samples/bpf/memcg.c
[ ... ]
> +static void usage(char *name)
> +{
[ ... ]
> + fprintf(stderr,
> + " -t, --threshold=VALUE The sum of 'val' PGSCAN of\n");
^^^^^^
Should this say PGFAULT instead of PGSCAN? The commit message and the BPF
code in memcg.bpf.c both indicate that the program monitors PGFAULT events,
but the help text here mentions PGSCAN.
---
AI reviewed your patch. Please fix the bug or email reply why it's not a bug.
See: https://github.com/kernel-patches/vmtest/blob/master/ci/claude/README.md
CI run summary: https://github.com/kernel-patches/bpf/actions/runs/21392729810
AI-authorship-score: low
AI-authorship-explanation: Code is a straightforward adaptation of existing
selftest code with standard kernel patterns; documentation error is more
consistent with human copy-paste mistake than AI generation.
issues-found: 1
issue-severity-score: low
issue-severity-explanation: Documentation mismatch in help text (PGSCAN vs
PGFAULT) could cause user confusion but has no runtime impact.