diff options
| author | Len Brown <len.brown@intel.com> | 2026-05-06 10:00:00 -0400 |
|---|---|---|
| committer | Len Brown <len.brown@intel.com> | 2026-10-03 14:49:37 -0400 |
| commit | 37cefc131a262277da158d8ab19575a1b1643ebb (patch) | |
| tree | e3dc7d64d3965f480a20a100bc3a10f0b26c6f54 /tools/perf/scripts/python | |
| parent | 4ffbedc0b0e5feb6a5440ae4038b35947faafaa9 (diff) | |
| download | linux-next-37cefc131a262277da158d8ab19575a1b1643ebb.tar.gz linux-next-37cefc131a262277da158d8ab19575a1b1643ebb.zip | |
x86_energy_perf_policy: Fix optarg keyword matching
Replace strncmp() with strcmp() for exact string matching in
parse_optarg_string(). Exact keyword matching is safer and clearer.
This prevents accidental matches with longer strings like "balance-power-extra".
Fixes: 4beec1d75196 ("tools/power x86_energy_perf_policy: support HWP.EPP")
Assisted-by: GitHub-Copilot:Claude-Sonnet-4.6
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
