#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 int bench_numa(int argc, const char **argv, const char *prefix); int bench_sched_messaging(int argc, const char **argv, const char *prefix); int bench_sched_pipe(int argc, const char **argv, const char *prefix); int bench_mem_memcpy(int argc, const char **argv, const char *prefix); int bench_mem_memset(int argc, const char **argv, const char *prefix); int bench_futex_hash(int argc, const char **argv, const char *prefix); int bench_futex_wake(int argc, const char **argv, const char *prefix); int bench_futex_wake_parallel(int argc, const char **argv, const char *prefix); int bench_futex_requeue(int argc, const char **argv, const char *prefix); /* pi futexes */ int bench_futex_lock_pi(int argc, const char **argv, const char *prefix); #define BENCH_FORMAT_DEFAULT_STR "default" #define BENCH_FORMAT_DEFAULT 0 #define BENCH_FORMAT_SIMPLE_STR "simple" #define BENCH_FORMAT_SIMPLE 1 #define BENCH_FORMAT_UNKNOWN -1 extern int bench_format; extern unsigned int bench_repeat; #endif private-remove'>summaryrefslogtreecommitdiff
path: root/tools/net/bpf_exp.y
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-01-25 00:54:07 +0530
committerDan Williams <dan.j.williams@intel.com>2017-01-31 18:16:30 -0800
commit970d14e3989160ee9e97c7d75ecbc893fd29dab9 (patch)
tree4a731cac4efedb17f86a912ec56c151d26792abe /tools/net/bpf_exp.y
parent7a308bb3016f57e5be11a677d15b821536419d36 (diff)
nvdimm: constify device_type structures
Declare device_type structure as const as it is only stored in the type field of a device structure. This field is of type const, so add const to declaration of device_type structure. File size before: text data bss dec hex filename 19278 3199 16 22493 57dd nvdimm/namespace_devs.o File size after: text data bss dec hex filename 19929 3160 16 23105 5a41 nvdimm/namespace_devs.o Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/net/bpf_exp.y')