From: Arnaldo Carvalho de Melo Date: Thu, 17 Feb 2011 14:18:42 +0000 (-0200) Subject: perf record: Delay setting the header writing atexit call X-Git-Tag: v2.6.39-rc1~510^2~60^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=712a4b6049724278121d56aba683151d86c8c35a;p=pandora-kernel.git perf record: Delay setting the header writing atexit call While testing the --filter option I noticed that we were writing lots of unneeded stuff to the perf.data header when the filter ioctl fails, so move the atexit(atexit_header) call to after we create the counters successfully. Cc: Frederic Weisbecker Cc: Ingo Molnar Cc: Mike Galbraith Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Cc: Tom Zanussi LKML-Reference: Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed