linux/tools/perf/tests
Ian Rogers 9ea150a8d0 perf parse-events: Fixes relating to no_value terms
A term may have no value in which case it is assumed to have a value
of 1. It doesn't just apply to alias/event terms so change the
parse_events_term__to_strbuf assert.

Commit 99e7138eb7 ("perf tools: Fail on using multiple bits long
terms without value") made it so that no_value terms could only be for a
single bit. Prior to commit 64199ae4b8 ("perf parse-events: Fix
propagation of term's no_value when cloning") this missed a test case
where config1 had no_value.

Fixes: 64199ae4b8 ("perf parse-events: Fix propagation of term's no_value when cloning")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: James Clark <james.clark@arm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rob Herring <robh@kernel.org>
Link: https://lore.kernel.org/r/20230901233949.2930562-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2023-09-02 08:12:15 -03:00
..
attr
config-fragments
shell perf test stat_bpf_counters_cgrp: Enhance perf stat cgroup BPF counter test 2023-08-29 14:16:15 -03:00
workloads
Build perf parse-events: Remove BPF event support 2023-08-15 16:41:48 -03:00
api-io.c
attr.c
attr.py
backward-ring-buffer.c
bitmap.c
bp_account.c
bp_signal.c
bp_signal_overflow.c
builtin-test-list.c
builtin-test-list.h
builtin-test.c perf parse-events: Remove BPF event support 2023-08-15 16:41:48 -03:00
code-reading.c
cpumap.c
demangle-java-test.c
demangle-ocaml-test.c
dlfilter-test.c perf dlfilter: Add al_cleanup() 2023-08-15 16:41:49 -03:00
dso-data.c
dwarf-unwind.c
event-times.c
event_groups.c
event_update.c
evsel-roundtrip-name.c
evsel-tp-sched.c
expand-cgroup.c
expr.c perf metric: Add #num_cpus_online literal 2023-08-30 23:03:03 -03:00
fdarray.c
genelf.c
hists_common.c
hists_common.h
hists_cumulate.c
hists_filter.c
hists_link.c
hists_output.c
is_printable_array.c
keep-tracking.c
kmod-path.c
make perf bpf: Remove support for embedding clang for compiling BPF events (-e foo.c) 2023-08-15 16:41:48 -03:00
maps.c
mem.c
mem2node.c
mmap-basic.c perf tests mmap-basic: Adapt for riscv 2023-08-16 08:52:47 -03:00
mmap-thread-lookup.c
openat-syscall-all-cpus.c
openat-syscall-tp-fields.c
openat-syscall.c
parse-events.c perf parse-events: Fixes relating to no_value terms 2023-09-02 08:12:15 -03:00
parse-metric.c
parse-no-sample-id-all.c
pe-file-parsing.c
pe-file.c
pe-file.exe
pe-file.exe.debug
perf-hooks.c
perf-record.c
perf-targz-src-pkg
perf-time-to-tsc.c
pfm.c
pmu-events.c perf jevents: Use "default_core" for events with no Unit 2023-08-29 14:16:15 -03:00
pmu.c perf parse-events: Make term's config const 2023-08-25 10:22:34 -03:00
python-use.c
sample-parsing.c
sdt.c
sigtrap.c
stat.c
sw-clock.c
switch-tracking.c
symbols.c
task-exit.c
tests.h perf parse-events: Remove BPF event support 2023-08-15 16:41:48 -03:00
thread-map.c
thread-maps-share.c
time-utils-test.c
topology.c
unit_number__scnprintf.c
vmlinux-kallsyms.c
wp.c