]> git.baikalelectronics.ru Git - kernel.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)
commitb057540f091a8d27a518bfc2e7446b98fd05cd8e
treeb1c4b47fabf5b73c8d2af0c2633648d56f56daa0
parent4d67ae1aaceb07043b76ae3fda9f3622a2ac0b53
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