linux/tools/perf/tests/shell
Namhyung Kim 9575ecdd19 perf test: Add perf record sample filtering test
$ sudo ./perf test 'sample filter' -v
   94: perf record sample filtering (by BPF) tests                     :
  --- start ---
  test child forked, pid 3817527
  Checking BPF-filter privilege
  Basic bpf-filter test
  Basic bpf-filter test [Success]
  Failing bpf-filter test
  Error: task-clock event does not have PERF_SAMPLE_CPU
  Failing bpf-filter test [Success]
  Group bpf-filter test
  Error: task-clock event does not have PERF_SAMPLE_CPU
  Error: task-clock event does not have PERF_SAMPLE_CODE_PAGE_SIZE
  Group bpf-filter test [Success]
  test child finished with 0
  ---- end ----
  perf record sample filtering (by BPF) tests: Ok

Reviewed-by: Ian Rogers <irogers@google.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230811025822.3859771-2-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-08-15 16:41:48 -03:00
..
coresight perf tests coresight thread_loop_check_tid_2: Fix shellcheck warnings about word splitting/quoting 2023-08-03 17:01:27 -03:00
lib perf tests lib stat_output: Fix shellcheck warning about missing shebang 2023-08-03 17:01:27 -03:00
buildid.sh perf tests shell: Fixed shellcheck warnings 2023-06-13 23:40:34 -03:00
daemon.sh perf tests daemon: Address shellcheck warnings 2023-06-13 23:40:33 -03:00
lock_contention.sh perf tests lock_contention: Fix shellcheck issue about quoting to avoid word splitting 2023-08-03 17:01:25 -03:00
pipe_test.sh perf test: Replace pipe test workload with noploop 2022-11-20 11:32:23 -03:00
probe_vfs_getname.sh perf tests probe_vfs_getname: Fix shellcheck warnings about word splitting/quoting 2023-08-03 17:01:25 -03:00
record_bpf_filter.sh perf test: Add perf record sample filtering test 2023-08-15 16:41:48 -03:00
record_offcpu.sh perf tests record_offcpu: Fix shellcheck warnings about word splitting/quoting and signal names case 2023-08-03 17:01:25 -03:00
record.sh perf test: Fix record test on KVM guests 2022-11-23 10:35:45 -03:00
record+probe_libc_inet_pton.sh perf test record+probe_libc_inet_pton.sh: Use "grep -F" instead of obsolescent "fgrep" 2023-06-16 11:02:01 -03:00
record+script_probe_vfs_getname.sh perf tests shell: Fixed shellcheck warnings 2023-06-13 23:40:34 -03:00
record+zstd_comp_decomp.sh perf tests record+zstd_comp_decomp: Fix the shellcheck warnings about word splitting/quoting 2023-08-03 17:01:27 -03:00
stat_all_metricgroups.sh perf test: Enable system wide for metricgroups test 2022-01-11 18:46:23 -03:00
stat_all_metrics.sh perf tests stat_all_metrics: Fix shellcheck warning SC2076 2023-06-13 23:40:33 -03:00
stat_all_pfm.sh perf test: Add test of libpfm4 events 2023-06-12 15:57:53 -03:00
stat_all_pmu.sh perf test: Fix "all PMU test" to skip parametrized events 2022-12-21 14:52:40 -03:00
stat_bpf_counters_cgrp.sh perf test stat_bpf_counters_cgrp: Fix shellcheck issue about logical operators 2023-08-03 17:01:25 -03:00
stat_bpf_counters.sh perf tests stat_bpf_counters: Fix usage of '==' to address shellcheck warning 2023-08-03 17:01:25 -03:00
stat_metrics_values.sh perf test: Add metric value validation test 2023-06-21 22:23:32 -07:00
stat.sh perf test: Add cputype testing to perf stat 2023-05-15 09:18:43 -03:00
stat+csv_output.sh perf tests stat+std_output: Fix shellcheck warnings about word splitting/quoting 2023-08-03 17:01:27 -03:00
stat+csv_summary.sh perf tests stat+csv_summary: Fix unused variable references detected via shellcheck 2023-08-03 17:01:25 -03:00
stat+json_output.sh perf tests stat+json_output: Address shellcheck warnings 2023-06-13 23:40:33 -03:00
stat+shadow_stat.sh perf tests stat+shadow_stat: Fix shellcheck warning about unused variable 2023-08-03 17:01:25 -03:00
stat+std_output.sh perf tests stat+std_output: Fix shellcheck warnings about word splitting/quoting and local variables 2023-08-03 17:01:27 -03:00
test_arm_callgraph_fp.sh perf tests: Fix test_arm_callgraph_fp variable expansion 2023-06-22 22:03:17 -07:00
test_arm_coresight.sh perf tests test_arm_coresight: Shellcheck fixes 2023-06-13 23:40:33 -03:00
test_arm_spe_fork.sh perf tests: Address signal case issues detected via shellcheck 2023-08-03 17:01:25 -03:00
test_arm_spe.sh perf tests test_arm_spe: Address shellcheck warnings about signal name case 2023-06-13 23:40:33 -03:00
test_brstack.sh perf tests test_brstack.sh: Fix all POSIX sh warnings 2023-06-13 23:40:34 -03:00
test_data_symbol.sh perf tools: Use "grep -E" instead of "egrep" 2022-12-14 15:28:19 -03:00
test_intel_pt.sh perf test test_intel_pt.sh: Test sample mode with event with PMU name 2023-05-10 14:19:20 -03:00
test_java_symbol.sh perf test java symbol: Remove needless debuginfod queries 2023-05-10 12:54:53 -03:00
test_perf_data_converter_json.sh perf tests perf_dat _converter_json: Use quoting to avoid word splitting 2023-08-03 17:01:25 -03:00
test_task_analyzer.sh perf tests task_analyzer: Check perf build options for libtraceevent support 2023-08-03 17:01:25 -03:00
test_uprobe_from_different_cu.sh perf test uprobe_from_different_cu: Skip if there is no gcc 2023-07-28 15:31:21 -03:00
trace+probe_vfs_getname.sh perf tests trace+probe_vfs_getname.sh: Accept quotes surrounding the filename 2023-08-15 16:41:48 -03:00