Revert "perf parse-events: Prefer sysfs/JSON hardware events over legacy"

This reverts commit 617824a7f0f73e4de325cf8add58e55b28c12493.

This made a simple 'perf record -e cycles:pp make -j199' stop working on
the Ampere ARM64 system Linus uses to test ARM64 kernels, as discussed
at length in the threads in the Link tags below.

The fix provided by Ian wasn't acceptable and work to fix this will take
time we don't have at this point, so lets revert this and work on it on
the next devel cycle.

Reported-by: Linus Torvalds <>
Cc: Adrian Hunter <>
Cc: Bhaskar Chowdhury <>
Cc: Ethan Adams <>
Cc: Ian Rogers <>
Cc: Ingo Molnar <>
Cc: James Clark <>
Cc: Jiri Olsa <>
Cc: Kan Liang <>
Cc: Namhyung Kim <>
Cc: Thomas Gleixner <>
Cc: Thomas Richter <>
Cc: Tycho Andersen <>
Cc: Yang Jihong <>
Signed-off-by: Arnaldo Carvalho de Melo <>
4 files changed