mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-26 19:14:18 +00:00
Running shellcheck on stat+shadow_stat.sh generates below
warning
In tests/shell/stat+csv_summary.sh line 26:
while read _num _event _run _pct
^--^ SC2034: _num appears unused. Verify use (or export if used externally).
^----^ SC2034: _event appears unused. Verify use (or export if used externally).
^--^ SC2034: _run appears unused. Verify use (or export if used externally).
^--^ SC2034: _pct appears unused. Verify use (or export if used externally).
This variable is intentionally unused since it is
needed to parse through the output. commit used "_"
as a prefix for this throw away variable. But this
stil shows warning with shellcheck v0.6. Fix this
by only using "_" instead of prefix and variable name.
Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Ian Rogers <irogers@google.com>
Reviewed-by: Kajol Jain <kjain@linux.ibm.com>
Cc: maddy@linux.ibm.com
Cc: disgoel@linux.vnet.ibm.com
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20230907171540.36736-3-atrajeev@linux.vnet.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
|
History
|
|
|---|---|---|
| .. | ||
| coresight | ||
| lib | ||
| buildid.sh | ||
| daemon.sh | ||
| lock_contention.sh | ||
| pipe_test.sh | ||
| probe_vfs_getname.sh | ||
| record+probe_libc_inet_pton.sh | ||
| record+script_probe_vfs_getname.sh | ||
| record+zstd_comp_decomp.sh | ||
| record.sh | ||
| record_bpf_filter.sh | ||
| record_offcpu.sh | ||
| record_sideband.sh | ||
| stat+csv_output.sh | ||
| stat+csv_summary.sh | ||
| stat+json_output.sh | ||
| stat+shadow_stat.sh | ||
| stat+std_output.sh | ||
| stat.sh | ||
| stat_all_metricgroups.sh | ||
| stat_all_metrics.sh | ||
| stat_all_pfm.sh | ||
| stat_all_pmu.sh | ||
| stat_bpf_counters.sh | ||
| stat_bpf_counters_cgrp.sh | ||
| stat_metrics_values.sh | ||
| test_arm_callgraph_fp.sh | ||
| test_arm_coresight.sh | ||
| test_arm_spe.sh | ||
| test_arm_spe_fork.sh | ||
| test_brstack.sh | ||
| test_data_symbol.sh | ||
| test_intel_pt.sh | ||
| test_java_symbol.sh | ||
| test_perf_data_converter_json.sh | ||
| test_task_analyzer.sh | ||
| test_uprobe_from_different_cu.sh | ||
| trace+probe_vfs_getname.sh | ||