tracing: Have max_latency be defined for HWLAT_TRACER as well
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 7 Sep 2016 16:45:09 +0000 (12:45 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Mon, 12 Sep 2016 13:59:46 +0000 (09:59 -0400)
commitf971cc9aabc287120bbe7f3f1abe70c13e61ee94
tree9d1dc39fb8ddd1bf34fa06b960baa36b0b70a1f1
parent7b2c86250122de316cbab8754050622ead04af39
tracing: Have max_latency be defined for HWLAT_TRACER as well

The hwlat tracer uses tr->max_latency, and if it's the only tracer enabled
that uses it, the build will fail. Add max_latency and its file when the
hwlat tracer is enabled.

Link: http://lkml.kernel.org/r/d6c3b7eb-ba95-1ffa-0453-464e1e24262a@infradead.org
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Acked-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c
kernel/trace/trace.h