Lines Matching full:branch
2 # Check branch stack sampling
14 # skip the test if the hardware doesn't support branch stack sampling
16 if ! perf record -o- --no-buildid --branch-filter any,save_type,u -- true > /dev/null 2>&1 ; then
41 if ((cnt++) % 3) /* branch (cond) */
53 } /* branch (uncond) */
60 echo "Testing user branch stack sampling"
65 perf record -o $TMPDIR/perf.data --branch-filter any,save_type,u -- $TMPDIR/a.out > /dev/null 2>&1
68 # example of branch entries:
82 # some branch types are still not being tested:
86 # first argument <arg0> is the argument passed to "--branch-stack <arg0>,save_type,u"
87 # second argument are the expected branch types for the given filter
92 echo "Testing branch stack filtering permutation ($filter,$expect)"
97 …perf record -o $TMPDIR/perf.data --branch-filter $filter,save_type,u -- $TMPDIR/a.out > /dev/null …
100 # fail if we find any branch type that doesn't match any of the expected ones
101 # also consider UNKNOWN branch types (-)