]> www.infradead.org Git - users/jedix/linux-maple.git/commit
tools/power/x86/intel_pstate_tracer: Add optional setting of trace buffer memory...
authorDoug Smythies <doug.smythies@gmail.com>
Fri, 4 May 2018 13:46:22 +0000 (06:46 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 May 2018 08:19:34 +0000 (10:19 +0200)
commit35459105deb26430653a7299a86bc66fb4dd5773
treeb1c4b47fabf5b73c8d2af0c2633648d56f56daa0
parent67b8d5c7081221efa252e111cd52532ec6d4266f
tools/power/x86/intel_pstate_tracer: Add optional setting of trace buffer memory allocation

Allow the user to override the default trace buffer memory allocation
by adding a command line option to override the default.

The patch also:

Adds a SIGINT (i.e. CTRL C exit) handler,
so that things can be cleaned up before exit.

Moves the postion of some other cleanup from after to
before the potential "No valid data to plot" exit.

Replaces all quit() calls with sys.exit, because
quit() is not supposed to be used in scripts.

Signed-off-by: Doug Smythies <dsmythies@telus.net>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py