PM: tools: use canonical ftrace path
authorRoss Zwisler <zwisler@chromium.org>
Mon, 30 Jan 2023 18:19:11 +0000 (11:19 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 2 Feb 2023 14:45:35 +0000 (15:45 +0100)
commitcf3e0251868c56b10ccb3e0b3628fcfb0c9c4ec5
tree901893cb98de347b8432efcf307a4124211135a3
parent6d796c50f84ca79f1722bb131799e5a5710c4700
PM: tools: use canonical ftrace path

The canonical location for the tracefs filesystem is at /sys/kernel/tracing.

But, from Documentation/trace/ftrace.rst:

  Before 4.1, all ftrace tracing control files were within the debugfs
  file system, which is typically located at /sys/kernel/debug/tracing.
  For backward compatibility, when mounting the debugfs file system,
  the tracefs file system will be automatically mounted at:

  /sys/kernel/debug/tracing

A few scripts in tools/power still refer to this older debugfs path, so
let's update them to avoid confusion.

Signed-off-by: Ross Zwisler <zwisler@google.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/pm-graph/sleepgraph.py
tools/power/x86/amd_pstate_tracer/amd_pstate_trace.py
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py