From: Feng Tang Date: Tue, 30 Oct 2012 03:56:07 +0000 (+0800) Subject: perf header: Add is_perf_magic() func X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~77^2~7^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e84ba4e26833991d1c1c15a592b1474ee2b6dfdb;p=pandora-kernel.git perf header: Add is_perf_magic() func With this function, other modules can basically check whether a file is a legal perf data file by checking its first 8 bytes against all possible perf magic numbers. Change the function name from check_perf_magic to more meaningful is_perf_magic as suggested by acme. Signed-off-by: Feng Tang Cc: Andi Kleen Cc: Ingo Molnar Cc: Namhyung Kim Cc: Peter Zijlstra Link: http://lkml.kernel.org/r/1351569369-26732-7-git-send-email-feng.tang@intel.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed