From: Stephane Eranian Date: Fri, 17 Jan 2014 15:34:05 +0000 (+0100) Subject: perf stat: fix NULL pointer reference bug with event unit X-Git-Tag: v3.14-rc1~95^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a398897ff21f73cb8b15a19514660f032926882;p=pandora-kernel.git perf stat: fix NULL pointer reference bug with event unit This patch fixes a problem with the handling of the newly introduced optional event unit. The following cmdline caused a segfault: $ perf stat -e cpu/event-0x3c/ ls This patch fixes the problem with the default setting for alias->unit which was eventually causing the segfault. Signed-off-by: Stephane Eranian Cc: David Ahern Cc: Ingo Molnar Cc: Jiri Olsa Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1389972846-6566-2-git-send-email-eranian@google.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed