From: Jens Axboe Date: Mon, 19 May 2014 15:49:56 +0000 (-0600) Subject: Merge branch 'master' of git://github.com/rootfs/fio X-Git-Tag: fio-2.1.10~13 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=25f488581e510c1b440f2e76842ec23f3dad7b57 Merge branch 'master' of git://github.com/rootfs/fio Signed-off-by: Jens Axboe Conflicts: configure --- 25f488581e510c1b440f2e76842ec23f3dad7b57 diff --cc configure index 2ba1dafe,063ccab4..d37e8b4b --- a/configure +++ b/configure @@@ -1148,53 -1164,45 +1148,92 @@@ f echo "Rados Block Device engine $rbd" ########################################## +# Check whether we have setvbuf +setvbuf="no" +cat > $TMPC << EOF +#include +int main(int argc, char **argv) +{ + FILE *f = NULL; + char buf[80]; + setvbuf(f, buf, _IOFBF, sizeof(buf)); + return 0; +} +EOF +if compile_prog "" "" "setvbuf"; then + setvbuf="yes" +fi +echo "setvbuf $setvbuf" + + # check for gfapi + gfapi="no" + cat > $TMPC << EOF + #include + + int main(int argc, char **argv) + { + + glfs_t *g = glfs_new("foo"); + + return 0; + } + EOF + if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then + LIBS="-lgfapi -lglusterfs $LIBS" + gfapi="yes" + fi + echo "Gluster API engine $gfapi" + + ########################################## + # check for gfapi fadvise support + gf_fadvise="no" + cat > $TMPC << EOF + #include + + int main(int argc, char **argv) + { + struct glfs_fd *fd; + int ret = glfs_fadvise(fd, 0, 0, 1); + + return 0; + } + EOF + + if compile_prog "" "-lgfapi -lglusterfs" "gfapi"; then + gf_fadvise="yes" + fi + echo "Gluster API use fadvise $gf_fadvise" + +########################################## +# Check if we support stckf on s390 +s390_z196_facilities="no" +cat > $TMPC << EOF +#define STFLE_BITS_Z196 45 /* various z196 facilities ... */ +int main(int argc, char **argv) +{ + /* We want just 1 double word to be returned. */ + register unsigned long reg0 asm("0") = 0; + unsigned long stfle_bits; + asm volatile(".machine push" "\n\t" + ".machine \"z9-109\"" "\n\t" + "stfle %0" "\n\t" + ".machine pop" "\n" + : "=QS" (stfle_bits), "+d" (reg0) + : : "cc"); + + if ((stfle_bits & (1UL << (63 - STFLE_BITS_Z196))) != 0) + return 0; + else + return -1; +} +EOF +if compile_prog "" "" "s390_z196_facilities"; then + $TMPE + if [[ $? -eq 0 ]]; then + s390_z196_facilities="yes" + fi +fi +echo "s390_z196_facilities $s390_z196_facilities" ############################################################################# if test "$wordsize" = "64" ; then @@@ -1319,13 -1327,15 +1358,19 @@@ f if test "$rbd" = "yes" ; then output_sym "CONFIG_RBD" fi -if test "$cpu_count" = "yes" ; then - output_sym "CONFIG_CPU_COUNT" +if test "$setvbuf" = "yes" ; then + output_sym "CONFIG_SETVBUF" +fi +if test "$s390_z196_facilities" = "yes" ; then + output_sym "CONFIG_S390_Z196_FACILITIES" + CFLAGS="$CFLAGS -march=z9-109" fi + if test "$gfapi" = "yes" ; then + output_sym "CONFIG_GFAPI" + fi + if test "$gf_fadvise" = "yes" ; then + output_sym "CONFIG_GF_FADVISE" + fi echo "LIBS+=$LIBS" >> $config_host_mak echo "CFLAGS+=$CFLAGS" >> $config_host_mak