Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361568
b: refs/heads/master
c: d1398cc
h: refs/heads/master
v: v3
  • Loading branch information
Vinson Lee authored and Arnaldo Carvalho de Melo committed Mar 14, 2013
1 parent d309508 commit c995bf9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3bf7b07ece6e00747602938f68c1db8001b9925f
refs/heads/master: d1398ccfec56e54010476efd6a316427d29045a6
24 changes: 24 additions & 0 deletions trunk/tools/perf/bench/bench.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
#ifndef BENCH_H
#define BENCH_H

/*
* The madvise transparent hugepage constants were added in glibc
* 2.13. For compatibility with older versions of glibc, define these
* tokens if they are not already defined.
*
* PA-RISC uses different madvise values from other architectures and
* needs to be special-cased.
*/
#ifdef __hppa__
# ifndef MADV_HUGEPAGE
# define MADV_HUGEPAGE 67
# endif
# ifndef MADV_NOHUGEPAGE
# define MADV_NOHUGEPAGE 68
# endif
#else
# ifndef MADV_HUGEPAGE
# define MADV_HUGEPAGE 14
# endif
# ifndef MADV_NOHUGEPAGE
# define MADV_NOHUGEPAGE 15
# endif
#endif

extern int bench_numa(int argc, const char **argv, const char *prefix);
extern int bench_sched_messaging(int argc, const char **argv, const char *prefix);
extern int bench_sched_pipe(int argc, const char **argv, const char *prefix);
Expand Down

0 comments on commit c995bf9

Please sign in to comment.