LINUX: Handle perf PT compilation issues when kernel < 4.1

* Runtime part of checks addressed at archInit
* Compilation perf struct issues dealt by using version macro
from exposed from 'uapi/linux/perf_event.h'

Maybe more places need to be wrapped with _HF_ENABLE_INTEL_PT
macro, although since code is still under development deal with the min
set for now so that compilation is not broken against older kernels.

Signed-off-by: Anestis Bechtsoudis <anestis@census-labs.com>
2 files changed
tree: b382784a4cf7e772ad1335215f31b081f2ae9fa2
  1. android/
  2. docs/
  3. examples/
  4. interceptor/
  5. linux/
  6. mac/
  7. posix/
  8. third_party/
  9. tools/
  10. .gitignore
  11. arch.h
  12. CHANGELOG
  13. cmdline.c
  14. cmdline.h
  15. common.h
  16. CONTRIBUTING
  17. COPYING
  18. display.c
  19. display.h
  20. files.c
  21. files.h
  22. fuzz.c
  23. fuzz.h
  24. honggfuzz.c
  25. log.c
  26. log.h
  27. Makefile
  28. mangle.c
  29. mangle.h
  30. README.md
  31. report.c
  32. report.h
  33. util.c
  34. util.h
README.md

honggfuzz

Description

Code

Requirements

  • Linux - BFD library (libbfd-dev) and LibUnwind (libunwind-dev/libunwind8-dev)
  • FreeBSD - gmake
  • Android - Android SDK/NDK

Other

This is NOT an official Google product.