From 8a398897ff21f73cb8b15a19514660f032926882 Mon Sep 17 00:00:00 2001 From: Stephane Eranian Date: Fri, 17 Jan 2014 16:34:05 +0100 Subject: [PATCH] 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-format-patch failed