diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-08-22 08:16:21 +0200 |
---|---|---|
committer | Andi Kleen <ak@linux.intel.com> | 2009-08-22 08:16:21 +0200 |
commit | f899f8bcfcaafb902a71cb03ddf1c39c6760a5a9 (patch) | |
tree | 514296a189ae68b7b94a5faa79fdf6779f3d4d84 | |
parent | 16b188ad99489a60610440519aa5dfebdb9a3712 (diff) | |
download | mce-test-f899f8bcfcaafb902a71cb03ddf1c39c6760a5a9.tar.gz |
Update MADV_POISON value to new one
There was a conflict with the MADV_POISON value, so update to the
new one. Note -- you need a new kernel for testing now.
Signed-off-by: Andi Kleen <ak@linux.intel.com>
-rw-r--r-- | tsrc/tinjpage-working.c | 2 | ||||
-rw-r--r-- | tsrc/tinjpage.c | 4 | ||||
-rw-r--r-- | tsrc/tkillpoison.c | 2 |
3 files changed, 3 insertions, 5 deletions
diff --git a/tsrc/tinjpage-working.c b/tsrc/tinjpage-working.c index b5920fd..f217fec 100644 --- a/tsrc/tinjpage-working.c +++ b/tsrc/tinjpage-working.c @@ -13,7 +13,7 @@ #include <errno.h> #include <string.h> -#define MADV_POISON 12 +#define MADV_POISON 100 #define err(x) perror(x),exit(1) diff --git a/tsrc/tinjpage.c b/tsrc/tinjpage.c index 45a22de..6c8fdf8 100644 --- a/tsrc/tinjpage.c +++ b/tsrc/tinjpage.c @@ -18,9 +18,7 @@ #include <time.h> #include <pthread.h> -#ifndef MADV_POISON -#define MADV_POISON 12 -#endif +#define MADV_POISON 100 #define TMPDIR "./" #define PATHBUFLEN 100 diff --git a/tsrc/tkillpoison.c b/tsrc/tkillpoison.c index 328a5bb..ce99429 100644 --- a/tsrc/tkillpoison.c +++ b/tsrc/tkillpoison.c @@ -5,7 +5,7 @@ #include <stdio.h> #include <unistd.h> -#define MADV_POISON 12 +#define MADV_POISON 100 int main(void) { |