]> sourceware.org Git - systemtap.git/commit
_stp_get_mm_counter: Fix kernel version check.
authorMark Wielaard <mjw@redhat.com>
Thu, 1 Dec 2011 19:26:19 +0000 (20:26 +0100)
committerMark Wielaard <mjw@redhat.com>
Thu, 1 Dec 2011 19:26:19 +0000 (20:26 +0100)
commitcb1fb1e7aec8f68a13301d046c19e9f7886f347b
tree924148b6fc2d9cdf0db95fabace4273331c33721
parent2ffd883f5ad3d4fe3763a267a3a446e3b5f1285c
_stp_get_mm_counter: Fix kernel version check.

The kernel version check was wrong in two ways. First it tested against
kernel_v >= "3.1.0" but linux commit 172703 "mm: delete non-atomic mm
counter implementation" was actually integrated for 3.0. But fedora
names their 3.0 kernels 2.6.40 (and 3.1 kernels 2.6.41, depending on
release). So change the test to kernel_v >= "2.6.40".

The reason this wasn't found earlier was that there is another check
for CONFIG_NR_CPUS >= CONFIG_SPLIT_PTLOCK_CPUS which is almost always
true (but not on arm tegra kernels).
tapset/proc_mem.stp
This page took 0.028004 seconds and 5 git commands to generate.