]> git.openfabrics.org - ~emulex/tmp/compat/.git/commit
compat: properly handle tracing
authorJohannes Berg <johannes.berg@intel.com>
Fri, 6 Apr 2012 10:41:07 +0000 (12:41 +0200)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Fri, 6 Apr 2012 19:11:54 +0000 (12:11 -0700)
commit8e67755a68394f4171e0d4fd0f6cc21fd743771a
tree4756c90dadc842e4a8e8870841df2c2ddc5c52c1
parent89a4e35682bedcdad9582688cc78c7cd2716d7c4
compat: properly handle tracing

We have to disable tracing on old kernels, but should
disable it only on old kernels. Since 2.6.33 it pretty
much hasn't changed at all, so we can keep it. Prior
to 2.6.33, there are various different reasons for not
supporting tracing, as noted in the tracepoint.h file.

This fixes tracing as the previous attempts here at
backporting it completely disabled it for all kernels,
not just for those where it's not possible.

Tested compilation of compat-wireless with tracing in
mac80211 against 2.6.24 through 3.3, but some versions
didn't compile due to unrelated issues.

Cc: stable@orbit-lab.org
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
include/linux/tracepoint.h