From: Frederic Weisbecker Date: Sun, 10 Jan 2010 00:25:51 +0000 (+0100) Subject: perf: Export software-only event group characteristic as a flag X-Git-Tag: v2.6.34-rc1~197^2~115 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d6f962b57bfaab62891c7abbf1469212a56d6103;p=pandora-kernel.git perf: Export software-only event group characteristic as a flag Before scheduling an event group, we first check if a group can go on. We first check if the group is made of software only events first, in which case it is enough to know if the group can be scheduled in. For that purpose, we iterate through the whole group, which is wasteful as we could do this check when we add/delete an event to a group. So we create a group_flags field in perf event that can host characteristics from a group of events, starting with a first PERF_GROUP_SOFTWARE flag that reduces the check on the fast path. Signed-off-by: Frederic Weisbecker Acked-by: Peter Zijlstra Cc: Paul Mackerras Cc: Ingo Molnar Cc: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed