From: Peter Zijlstra Date: Mon, 21 Nov 2011 19:58:59 +0000 (+0100) Subject: perf: Fix mmap_page::offset computation X-Git-Tag: v3.4-rc1~192^2~25^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=365a4038486b57bb2bd516706a80f82f250f5306;p=pandora-kernel.git perf: Fix mmap_page::offset computation There's multiple reason the counter might be unavailable, change the condition to !->index since perf_event_index() should return 0 for all those cases. Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/n/tip-1ixr3olci40w8rgv2evv2ldh@git.kernel.org Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed