Skip to content
Commit c33aea44 authored by Namhyung Kim's avatar Namhyung Kim
Browse files

perf tools: Fix precise_ip fallback logic



Sometimes it returns other than EOPNOTSUPP for invalid precise_ip so
it cannot check the error code.  Let's move the fallback after the
missing feature checks so that it can handle EINVAL as well.  This also
aligns well with the existing behavior which blindly turns off the
precise_ip but we check the missing features correctly now.

Fixes: af954f76 ("perf tools: Check fallback error and order")
Reported-by: default avatarkernel test robot <oliver.sang@intel.com>
Reported-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Closes: https://lore.kernel.org/oe-lkp/202411301431.799e5531-lkp@intel.com


Tested-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
Link: https://lore.kernel.org/r/Z1DV0lN8qHSysX7f@google.com


Signed-off-by: default avatarNamhyung Kim <namhyung@kernel.org>
parent 968121f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment