ppc-memtrace 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. What: /sys/kernel/debug/powerpc/memtrace
  2. Date: Aug 2017
  3. KernelVersion: 4.14
  4. Contact: [email protected]
  5. Description: This folder contains the relevant debugfs files for the
  6. hardware trace macro to use. CONFIG_PPC64_HARDWARE_TRACING
  7. must be set.
  8. What: /sys/kernel/debug/powerpc/memtrace/enable
  9. Date: Aug 2017
  10. KernelVersion: 4.14
  11. Contact: [email protected]
  12. Description: Write an integer containing the size in bytes of the memory
  13. you want removed from each NUMA node to this file - it must be
  14. aligned to the memblock size. This amount of RAM will be removed
  15. from each NUMA node in the kernel mappings and the following
  16. debugfs files will be created. Once memory is successfully
  17. removed from each node, the following files are created. To
  18. re-add memory to the kernel, echo 0 into this file (it will be
  19. automatically onlined).
  20. What: /sys/kernel/debug/powerpc/memtrace/<node-id>
  21. Date: Aug 2017
  22. KernelVersion: 4.14
  23. Contact: [email protected]
  24. Description: This directory contains information about the removed memory
  25. from the specific NUMA node.
  26. What: /sys/kernel/debug/powerpc/memtrace/<node-id>/size
  27. Date: Aug 2017
  28. KernelVersion: 4.14
  29. Contact: [email protected]
  30. Description: This contains the size of the memory removed from the node.
  31. What: /sys/kernel/debug/powerpc/memtrace/<node-id>/start
  32. Date: Aug 2017
  33. KernelVersion: 4.14
  34. Contact: [email protected]
  35. Description: This contains the start address of the removed memory.
  36. What: /sys/kernel/debug/powerpc/memtrace/<node-id>/trace
  37. Date: Aug 2017
  38. KernelVersion: 4.14
  39. Contact: [email protected]
  40. Description: This is where the hardware trace macro will output the trace
  41. it generates.