perf intel-pt: Make logging slightly more efficient
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 25 Sep 2015 13:15:35 +0000 (16:15 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Sep 2015 19:45:26 +0000 (16:45 -0300)
commit116f349c5bf8c7aec4047dd6e06c310354b46e4f
tree6a6596049af5450e5a521915a7a56bddb39d4393
parent9992c2d50a73f442653968a98a9e5f3bf4e769e9
perf intel-pt: Make logging slightly more efficient

Logging is only used for debugging. Use macros to save calling into the
functions only to return immediately when logging is not enabled.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1443186956-18718-5-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt-decoder/intel-pt-log.c
tools/perf/util/intel-pt-decoder/intel-pt-log.h