logger: Log to the FTrace buffer if tracing is enabled
authorKieran Bingham <kieran.bingham@ideasonboard.com>
Thu, 1 Dec 2016 21:31:47 +0000 (21:31 +0000)
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 13 Feb 2017 18:43:48 +0000 (20:43 +0200)
commit7e30d7728affe283ad960d1e7f37515dc4c79dd3
treea87eeb6f5061b5f02f2c6d36d1c9462ab42728dc
parentd29ee6719d717f51e4063f96b6aebf7d90ba6fd0
logger: Log to the FTrace buffer if tracing is enabled

Extend the logger such that it will detect the tracing system, and also
append print statement to this ring buffer.

This provides the relevant logging output interspersed in the ftrace
logs for an effective solution to identifying the actions that caused
the traces to occur

Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
scripts/logger.sh