Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libgtop2.spec'], chrootPath='/var/lib/mock/f30-build-34685-19469/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/libgtop2.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/libgtop2-2.38.0-4.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libgtop2.spec'], chrootPath='/var/lib/mock/f30-build-34685-19469/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/libgtop2.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.z2hm3r + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf libgtop-2.38.0 + /usr/bin/xz -dc /builddir/build/SOURCES/libgtop-2.38.0.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd libgtop-2.38.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.gexjEg + umask 022 + cd /builddir/build/BUILD + cd libgtop-2.38.0 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub BUILDSTDERR: ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) BUILDSTDERR: ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess BUILDSTDERR: ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --disable-gtk-doc --disable-static checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '995' is supported by ustar format... yes checking whether GID '135' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking for gobject-introspection... yes checking for style of include used by make... GNU checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes checking dependency style of gcc... none checking for library containing strerror... none required checking for riscv64-redhat-linux-gnu-gcc... gcc checking whether we are using the GNU C compiler... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to accept ISO C89... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking dependency style of gcc... (cached) none checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for gawk... (cached) gawk checking for perl5... no checking for perl... perl checking for riscv64-redhat-linux-gnu-gcc... (cached) gcc checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for riscv64-redhat-linux-gnu-as... no checking for as... as checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking the maximum length of command line arguments... 1572864 checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking how to convert riscv64-redhat-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-linux-gnu-ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking for libgtop sysdeps directory... linux checking linux/version.h usability... yes checking linux/version.h presence... yes checking for linux/version.h... yes checking for Linux kernel version code... 267264 checking whether we need libgtop... no checking sys/bitypes.h usability... yes checking sys/bitypes.h presence... yes checking for sys/bitypes.h... yes checking for GLIB... yes checking ifaddrs.h usability... yes checking ifaddrs.h presence... yes checking for ifaddrs.h... yes checking for an ANSI C-conforming const... yes checking for inline... inline checking for off_t... yes checking for pid_t... yes checking for size_t... yes checking for struct stat.st_rdev... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for uid_t in sys/types.h... yes checking for ssize_t... yes checking for memory.h... (cached) yes checking for string.h... (cached) yes checking for strerror... yes checking for dlopen... no checking for dlopen in -ldl... yes checking for dlerror... yes checking linux/isdn.h usability... yes checking linux/isdn.h presence... yes checking for linux/isdn.h... yes checking for vmgetinfo in -lperfstat... no checking for vm_statistics in -lmach... no checking whether program_invocation_name must be declared... no checking for socket... yes checking netinet/in.h usability... yes checking netinet/in.h presence... yes checking for netinet/in.h... yes checking arpa/inet.h usability... yes checking arpa/inet.h presence... yes checking for arpa/inet.h... yes checking "for sun_len member in struct sockaddr_un"... no checking for working alloca.h... yes checking for alloca... yes checking for stdlib.h... (cached) yes checking for unistd.h... (cached) yes checking for sys/param.h... yes checking for getpagesize... yes checking for working mmap... yes checking return type of signal handlers... void checking for strftime... yes checking for getcwd... yes checking for gettimeofday... yes checking for getwd... yes checking for putenv... yes checking for strdup... yes checking for strtoul... yes checking for uname... yes checking whether NLS is requested... yes checking for msgfmt... /usr/bin/msgfmt checking for gmsgfmt... /usr/bin/msgfmt checking for xgettext... /usr/bin/xgettext checking for msgmerge... /usr/bin/msgmerge checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for shared library run path origin... done BUILDSTDERR: ./configure: line 16296: cd: /lib64/lp64d/../lib64/lp64d/: No such file or directory BUILDSTDERR: ./configure: line 16296: cd: /usr/lib64/lp64d/../lib64/lp64d/: No such file or directory checking for CFPreferencesCopyAppValue... no checking for CFLocaleCopyCurrent... no checking for GNU gettext in libc... yes checking whether to use NLS... yes checking where the gettext function comes from... libc checking for X... no checking for gethostbyname... yes checking for connect... yes checking for inet_aton... yes checking X11/Xauth.h usability... no checking X11/Xauth.h presence... no checking for X11/Xauth.h... no checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for sys/param.h... (cached) yes checking sys/statfs.h usability... yes checking sys/statfs.h presence... yes checking for sys/statfs.h... yes checking sys/fstyp.h usability... no checking sys/fstyp.h presence... no checking for sys/fstyp.h... no checking mnttab.h usability... no checking mnttab.h presence... no checking for mnttab.h... no checking mntent.h usability... yes checking mntent.h presence... yes checking for mntent.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking sys/vfs.h usability... yes checking sys/vfs.h presence... yes checking for sys/vfs.h... yes checking sys/mount.h usability... yes checking sys/mount.h presence... yes checking for sys/mount.h... yes checking sys/filsys.h usability... no checking sys/filsys.h presence... no checking for sys/filsys.h... no checking sys/fs_types.h usability... no checking sys/fs_types.h presence... no checking for sys/fs_types.h... no checking sys/fs/s5param.h usability... no checking sys/fs/s5param.h presence... no checking for sys/fs/s5param.h... no checking for bcopy... yes checking for endgrent... yes checking for endpwent... yes checking for fchdir... yes checking for ftime... yes checking for ftruncate... yes checking for getcwd... (cached) yes checking for getmntinfo... no checking for gettimeofday... (cached) yes checking for isascii... yes checking for lchown... yes checking for listmntent... no checking for memcpy... yes checking for mkfifo... yes checking for strchr... yes checking for strerror... (cached) yes checking for strrchr... yes checking for vprintf... yes checking for library containing getmntent... none required checking for listmntent of Cray/Unicos-9... no checking for one-argument getmntent function... yes configure: checking how to get filesystem space usage... checking statvfs function (SVR4)... yes checking for statfs that truncates block counts... no configure: checking for AFS... checking for gtk-doc... no BUILDSTDERR: checking for gtkdoc-check... configure: WARNING: BUILDSTDERR: You will not be able to create source packages with 'make dist' BUILDSTDERR: because gtk-doc >= 1.4 is not found. no checking for gtkdoc-check... no checking for gtkdoc-rebase... no checking for gtkdoc-mkpdf... no checking whether to build gtk-doc documentation... no checking for GTKDOC_DEPS... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating libgtop.spec config.status: creating po/Makefile.in config.status: creating misc/Makefile config.status: creating include/Makefile config.status: creating include/glibtop/Makefile config.status: creating sysdeps/Makefile config.status: creating sysdeps/common/Makefile config.status: creating sysdeps/stub/Makefile config.status: creating sysdeps/stub_suid/Makefile config.status: creating sysdeps/sun4/Makefile config.status: creating sysdeps/osf1/Makefile config.status: creating sysdeps/linux/Makefile config.status: creating sysdeps/freebsd/Makefile config.status: creating sysdeps/solaris/Makefile config.status: creating sysdeps/aix/Makefile config.status: creating sysdeps/bsd/Makefile config.status: creating sysdeps/darwin/Makefile config.status: creating sysdeps/cygwin/Makefile config.status: creating sysdeps/openbsd/Makefile config.status: creating src/Makefile config.status: creating src/daemon/Makefile config.status: creating lib/Makefile config.status: creating examples/Makefile config.status: creating doc/Makefile config.status: creating doc/reference/Makefile config.status: creating doc/reference/version.xml config.status: creating libgtop-2.0.pc config.status: creating libgtopconfig.h config.status: creating config.h config.status: executing depfiles commands config.status: executing libtool commands config.status: executing po-directories commands config.status: creating po/POTFILES config.status: creating po/Makefile + make -j4 make all-recursive make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0' Making all in po make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/po' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/po' Making all in misc make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/misc' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/misc' Making all in include make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include' Making all in glibtop make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include/glibtop' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include/glibtop' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include' Making all in sysdeps make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' Making all in common make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/common' CC error.lo CC gnuslib.lo CC procargs.lo CC default.lo BUILDSTDERR: gnuslib.c: In function 'glibtop_internet_addr': BUILDSTDERR: gnuslib.c:212:11: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return ((struct in_addr *) (hp->h_addr))->s_addr; BUILDSTDERR: ^ BUILDSTDERR: gnuslib.c: In function 'connect_to_internet_server': BUILDSTDERR: gnuslib.c:295:2: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: write (s, buf, strlen (buf)); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC sysdeps_suid.lo CCLD libgtop_common-2.0.la CCLD libgtop_suid_common-2.0.la make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/common' Making all in linux make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/linux' CC open.lo CC close.lo CC cpu.lo CC mem.lo CC swap.lo CC uptime.lo CC loadavg.lo CC shm_limits.lo CC msg_limits.lo CC sem_limits.lo CC proclist.lo CC procstate.lo CC procuid.lo CC proctime.lo BUILDSTDERR: proclist.c: In function 'glibtop_get_proclist_s': BUILDSTDERR: proclist.c:168:9: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return (pid_t*)g_array_free(pids, FALSE); BUILDSTDERR: ^ CC procmem.lo CC procsignal.lo CC prockernel.lo BUILDSTDERR: procmem.c: In function 'glibtop_get_proc_mem_s': BUILDSTDERR: procmem.c:89:28: warning: "/*" within comment [-Wcomment] BUILDSTDERR: /* As of 2.6.24 in fs/proc/*.c BUILDSTDERR: CC procsegment.lo BUILDSTDERR: At top level: BUILDSTDERR: procmem.c:38:1: warning: 'get_pss' defined but not used [-Wunused-function] BUILDSTDERR: get_pss(glibtop* server, pid_t pid) BUILDSTDERR: ^~~~~~~ CC procargs.lo CC procmap.lo CC siglist.lo CC sysinfo.lo CC netload.lo BUILDSTDERR: procmap.c: In function 'parse_line': BUILDSTDERR: procmap.c:139:12: warning: unused variable 'next' [-Wunused-variable] BUILDSTDERR: char *p, *next; BUILDSTDERR: ^~~~ BUILDSTDERR: procmap.c: In function 'glibtop_get_proc_map_s': BUILDSTDERR: procmap.c:218:11: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return (glibtop_map_entry*) g_array_free(entry_list, TRUE); BUILDSTDERR: ^ BUILDSTDERR: procmap.c:317:9: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return (glibtop_map_entry*) g_array_free(entry_list, FALSE); BUILDSTDERR: ^ CC ppp.lo CC glibtop_private.lo BUILDSTDERR: netload.c: In function 'get_ipv6': BUILDSTDERR: netload.c:148:11: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: &((struct sockaddr_in6 *) ifr6->ifa_addr)->sin6_addr, BUILDSTDERR: ^ BUILDSTDERR: netload.c:152:11: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: &((struct sockaddr_in6 *) ifr6->ifa_netmask)->sin6_addr, BUILDSTDERR: ^ BUILDSTDERR: netload.c: In function 'glibtop_get_netload_s': BUILDSTDERR: netload.c:508:22: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: buf->address = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr.s_addr; BUILDSTDERR: ^ BUILDSTDERR: netload.c:514:21: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: buf->subnet = ((struct sockaddr_in *) &ifr.ifr_addr)->sin_addr.s_addr; BUILDSTDERR: ^ BUILDSTDERR: netload.c: In function 'linux_2_0_stats': BUILDSTDERR: netload.c:275:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets (buffer, BUFSIZ-1, f); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c: In function 'linux_2_4_stats': BUILDSTDERR: netload.c:356:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets (buffer, BUFSIZ-1, f); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:357:5: warning: ignoring return value of 'fgets', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: fgets (buffer, BUFSIZ-1, f); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~ CC mountlist.lo CC procaffinity.lo CC procio.lo BUILDSTDERR: mountlist.c: In function 'glibtop_get_mountlist_s': BUILDSTDERR: mountlist.c:166:10: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return (glibtop_mountentry*) g_array_free(entries, FALSE); BUILDSTDERR: ^ CC fsusage.lo CC netlist.lo BUILDSTDERR: procaffinity.c: In function 'glibtop_get_proc_affinity_s': BUILDSTDERR: procaffinity.c:67:10: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return (guint16*) g_array_free(cpus, FALSE); BUILDSTDERR: ^ CC procopenfiles.lo CC procwd.lo BUILDSTDERR: procopenfiles.c: In function 'glibtop_get_proc_open_files_s': BUILDSTDERR: procopenfiles.c:323:9: warning: cast increases required alignment of target type [-Wcast-align] BUILDSTDERR: return (glibtop_open_files_entry*)g_array_free(entries, FALSE); BUILDSTDERR: ^ CCLD libgtop_sysdeps-2.0.la make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/linux' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' Making all in lib make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/lib' perl ./lib.pl < ../features.def > lib-t mv lib-t lib.c make all-am make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/lib' CC init.lo CC open.lo CC command.lo CC close.lo CC read.lo CC read_data.lo CC write.lo CC lib.lo CC parameter.lo CC sysdeps.lo CC boxed.lo CCLD libgtop-2.0.la GISCAN GTop-2.0.gir BUILDSTDERR: /usr/include/glib-2.0/gobject/gobject.h:725: syntax error, unexpected ')' in ' ((__typeof__(new_object)) (g_object_ref) (new_object));' at ')' BUILDSTDERR: /builddir/build/BUILD/libgtop-2.38.0/include/glibtop/sysdeps.h:61: syntax error, unexpected identifier in 'G_STATIC_ASSERT((1UL << (28 - 1)) <= ' at 'G_STATIC_ASSERT' BUILDSTDERR: include/glibtop/procargs.h:79: Warning: GTop: glibtop_get_proc_argv_l: return value: Missing (transfer) annotation BUILDSTDERR: include/glibtop/procwd.h:55: Warning: GTop: glibtop_get_proc_wd_l: return value: Missing (transfer) annotation BUILDSTDERR: include/glibtop/procwd.h:68: Warning: GTop: glibtop_get_proc_wd_s: return value: Missing (transfer) annotation GICOMP GTop-2.0.gir make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/lib' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/lib' Making all in src make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/src' Making all in examples make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/examples' CC first.o CC second.o CC procargs.o CC pprint.o BUILDSTDERR: pprint.c: In function 'pprint_get_cpu': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:86:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ CC df.o BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:87:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:88:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:89:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: pprint.c:90:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:91:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:92:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: pprint.c:93:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:94:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:95:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:96:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:96:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:96:46: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:97:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:97:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:97:45: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:98:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:98:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:98:45: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:99:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:99:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:99:44: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:100:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:100:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:100:45: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:101:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:101:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:101:47: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:102:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:102:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:102:44: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:103:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:35:9: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:103:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:103:48: note: format string is defined here BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:104:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_fsusage': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:118:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ CC netlist.o CC mountlist.o CC procmap.o BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:119:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:120:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:121:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:122:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:123:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:125:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:126:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_loadavg': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:139:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ CC netload.o BUILDSTDERR: pprint.c:35:9: warning: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ^~~~~~~~ ~ BUILDSTDERR: pprint.c:140:3: note: in expansion of macro 'PPRINT_ARRAY' BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ^~~~~~~~~~~~ BUILDSTDERR: pprint.c:35:12: note: format string is defined here BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:141:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:142:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:143:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_mem': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:156:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:157:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:158:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: procmap.c: In function 'main': BUILDSTDERR: mountlist.c: In function 'main': BUILDSTDERR: mountlist.c:102:21: warning: format '%Lu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("%-16s %9Lu %9Lu %9Lu %9Lu %9Lu %9d\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %9lu BUILDSTDERR: mountlist.c:104:4: BUILDSTDERR: fsusage.blocks, fsusage.bfree, BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:165:28: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ~~~~^ BUILDSTDERR: %#lx BUILDSTDERR: procmap.c:168:4: BUILDSTDERR: maps[i].flags, BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: mountlist.c:102:26: warning: format '%Lu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("%-16s %9Lu %9Lu %9Lu %9Lu %9Lu %9d\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %9lu BUILDSTDERR: mountlist.c:104:20: BUILDSTDERR: fsusage.blocks, fsusage.bfree, BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:165:38: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: procmap.c:169:4: BUILDSTDERR: maps[i].size >> 10, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: mountlist.c:102:31: warning: format '%Lu' expects argument of type 'long long unsigned int', but argument 5 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("%-16s %9Lu %9Lu %9Lu %9Lu %9Lu %9d\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %9lu BUILDSTDERR: mountlist.c:105:4: BUILDSTDERR: fsusage.bavail, fsusage.files, BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: mountlist.c:102:36: warning: format '%Lu' expects argument of type 'long long unsigned int', but argument 6 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("%-16s %9Lu %9Lu %9Lu %9Lu %9Lu %9d\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %9lu BUILDSTDERR: mountlist.c:105:20: BUILDSTDERR: fsusage.bavail, fsusage.files, BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:165:50: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: procmap.c:170:4: BUILDSTDERR: maps[i].rss >> 10, BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: mountlist.c:102:41: warning: format '%Lu' expects argument of type 'long long unsigned int', but argument 7 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("%-16s %9Lu %9Lu %9Lu %9Lu %9Lu %9d\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %9lu BUILDSTDERR: mountlist.c:106:4: BUILDSTDERR: fsusage.ffree, fsusage.block_size); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:165:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 5 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:171:4: BUILDSTDERR: maps[i].shared_clean >> 10, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:166:21: note: format string is defined here BUILDSTDERR: "shared_clean:%lluKib shared_dirty:%lluKiB " BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: procmap.c:165:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 6 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:172:4: BUILDSTDERR: maps[i].shared_dirty >> 10, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:166:42: note: format string is defined here BUILDSTDERR: "shared_clean:%lluKib shared_dirty:%lluKiB " BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: procmap.c:165:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 7 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:173:4: BUILDSTDERR: maps[i].private_clean >> 10, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:167:22: note: format string is defined here BUILDSTDERR: "private_clean:%lluKiB private_dirty: %lluKiB\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: procmap.c:165:11: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 8 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: g_print("smaps flags:%#llx size:%lluKiB rss:%lluKiB " BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:174:4: BUILDSTDERR: maps[i].private_dirty >> 10); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: procmap.c:167:45: note: format string is defined here BUILDSTDERR: "private_clean:%lluKiB private_dirty: %lluKiB\n", BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:159:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ^~~~~~ CC sysdeps.o CC timings.o BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:160:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:161:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:162:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:163:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:164:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_mountlist': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:180:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: netload.c: In function 'main': BUILDSTDERR: netload.c:116:33: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ~~~~~~^ BUILDSTDERR: %016lx BUILDSTDERR: netload.c:135:3: BUILDSTDERR: netload.flags, BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: netload.c:116:10: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:136:3: BUILDSTDERR: netload.if_flags, BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:117:32: note: format string is defined here BUILDSTDERR: "\tInterface Flags:\t0x%016llx\n" BUILDSTDERR: ~~~~~~^ BUILDSTDERR: %016lx BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 9 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:140:3: BUILDSTDERR: netload.collisions, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:121:24: note: format string is defined here BUILDSTDERR: "\tCollisions:\t\t%llu\n\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:181:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 10 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:141:3: BUILDSTDERR: netload.packets_in, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:122:24: note: format string is defined here BUILDSTDERR: "\tPackets In:\t\t%llu\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 11 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:142:3: BUILDSTDERR: netload.packets_out, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:123:25: note: format string is defined here BUILDSTDERR: "\tPackets Out:\t\t%llu\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 12 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:143:3: BUILDSTDERR: netload.packets_total, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:182:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: netload.c:124:27: note: format string is defined here BUILDSTDERR: "\tPackets Total:\t\t%llu\n\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 13 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:144:3: BUILDSTDERR: netload.bytes_in, BUILDSTDERR: ~~~~~~~~~~~~~~~~ CC openfiles.o CC smp.o CC proclist.o BUILDSTDERR: netload.c:125:22: note: format string is defined here BUILDSTDERR: "\tBytes In:\t\t%llu\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 14 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:145:3: BUILDSTDERR: netload.bytes_out, BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:126:23: note: format string is defined here BUILDSTDERR: "\tBytes Out:\t\t%llu\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 15 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:146:3: BUILDSTDERR: netload.bytes_total, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:127:25: note: format string is defined here BUILDSTDERR: "\tBytes Total:\t\t%llu\n\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 16 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:147:3: BUILDSTDERR: netload.errors_in, BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:128:23: note: format string is defined here BUILDSTDERR: "\tErrors In:\t\t%llu\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:183:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 17 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:148:3: BUILDSTDERR: netload.errors_out, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:129:24: note: format string is defined here BUILDSTDERR: "\tErrors Out:\t\t%llu\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:185:17: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~^ ~~~~~~~~~ BUILDSTDERR: %4lu BUILDSTDERR: netload.c:116:10: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 18 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf ("Network Load (0x%016llx):\n\n" BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: netload.c:149:3: BUILDSTDERR: netload.errors_total, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:185:32: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~^ ~~~~~~~~~~ BUILDSTDERR: %lu BUILDSTDERR: netload.c:130:26: note: format string is defined here BUILDSTDERR: "\tErrors Total:\t\t%llu\n\n" BUILDSTDERR: ~~~^ BUILDSTDERR: %lu BUILDSTDERR: pprint.c:189:40: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 3 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~^ BUILDSTDERR: %#lx BUILDSTDERR: pprint.c:193:26: BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_msg_limits': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:214:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:215:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:216:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_timings.c: In function 'display_self_times': BUILDSTDERR: PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:217:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: timings.c:81:2: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: system("ps xjf | egrep 'timings|libgtop_server'"); BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CC free.o CC wd.o CC affinity.o BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:218:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:219:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:220:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:221:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_netload': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:235:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ CC diskio.o CCLD first CCLD second BUILDSTDERR: pprint.c: In function 'pprint_get_swap': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:269:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:270:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:271:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:272:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:273:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:274:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_uptime': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:287:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:290:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_proc_kernel': CCLD procargs CCLD df CCLD netlist CCLD mountlist CCLD procmap BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:304:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:305:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:306:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:307:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:308:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ^~~~~~ CCLD netload CCLD sysdeps CCLD timings CCLD openfiles BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:309:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c: In function 'pprint_get_proc_mem': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:321:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: pprint.c:322:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:323:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(resident, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:324:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(resident, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(resident, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(share, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:325:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(share, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(resident, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(share, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(rss, "%llu"); BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: pprint.c:326:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(rss, "%llu"); BUILDSTDERR: ^~~~~~ BUILDSTDERR: pprint.c:21:37: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(resident, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(share, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(rss, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(rss_rlim, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: pprint.c:327:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(rss_rlim, "%llu"); BUILDSTDERR: ^~~~~~ CCLD smp CCLD proclist CCLD free CCLD wd CCLD affinity BUILDSTDERR: pprint.c: In function 'pprint_get_proc_affinity': BUILDSTDERR: pprint.c:21:37: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'guint64' {aka 'long unsigned int'} [-Wformat=] BUILDSTDERR: #define PPRINT(DATA, FORMAT) printf("\t%4lu B %3lu " #DATA " = " FORMAT "\n", \ BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.DATA, (unsigned long) buf_offsetof(DATA), buf.DATA) BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ARRAY(ARRAY, SIZE, FORMAT) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B %3lu " #ARRAY "[%lu] = { ", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf.ARRAY, \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) buf_offsetof(ARRAY), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf.ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for (i = 0; i < (SIZE); ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (!buf.ARRAY[i] && i < (SIZE - 1) && !buf.ARRAY[i + 1]) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: do { i++; } while (i < SIZE && !buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("..., "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } else { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf(".%u = " FORMAT ", ", i, buf.ARRAY[i]); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("}\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_ENTRY_ARRAY(ARRAY, SIZE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; \ BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: printf("\t%4lu B " #ARRAY "[%lu/%lu] = { \n", \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) sizeof buf->ARRAY, (unsigned long)(SIZE), \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) G_N_ELEMENTS(buf->ARRAY)); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: for(i = 0; i < SIZE; ++i) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: if (buf->ARRAY[i].values) { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("\t[ "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_HASHTABLE(buf->ARRAY[i].values); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf ("]\n"); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~~~~~~ BUILDSTDERR: } \ BUILDSTDERR: ~~~ BUILDSTDERR: printf("} "); \ BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define PPRINT_HASHTABLE(HASHTABLE) do { \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: g_hash_table_foreach (HASHTABLE, (GHFunc)pprint_hashtable_item, NULL); \ BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } while(0) BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: #define FOOTER_PPRINT() putchar('\n'); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_hashtable_item(gchar* key, gchar* value, gpointer user_data) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf ("'%s': '%s', ", key, value); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: static void pprint_get_sysinfo(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: const glibtop_sysinfo *buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: buf = glibtop_get_sysinfo(); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_sysinfo); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: //PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: // PPRINT(ncpu, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ENTRY_ARRAY(cpuinfo, buf->ncpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_cpu(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_cpu buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_cpu(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_cpu); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nice, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(sys, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idle, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(iowait, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(irq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(softirq, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(frequency, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_total, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_user, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_nice, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_sys, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_idle, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_iowait, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_irq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(xcpu_softirq, GLIBTOP_NCPU, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(xcpu_flags, "%llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_fsusage(const char *mountpoint) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_fsusage buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_fsusage(&buf, mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_fsusage); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("pprint_get_fsusage (mountpoint = \"%s\"\n", mountpoint); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(blocks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bfree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(bavail, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(files, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(ffree, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(block_size, "%u"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(read, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(write, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_loadavg(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_loadavg buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_loadavg(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_loadavg); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT_ARRAY(loadavg, 3, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_running, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(nr_tasks, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(last_pid, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mem(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_mem(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(shared, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(buffer, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cached, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(user, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(locked, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_mountlist(gboolean allfs) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_mountlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: glibtop_mountentry *entries; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: size_t i; BUILDSTDERR: ~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: entries = glibtop_get_mountlist(&buf, allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_mountlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_mountlist (allfs = %d)\n", allfs); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(number, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t%4llu B entries[%llu] = \n\t\t{\n", buf.total, buf.number); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t\t .%lu = { .dev = %#llx," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .devname = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .mountir = \"%s\"," BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: " .type = \"%s\" }\n", BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: (unsigned long) i, entries[i].dev, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].devname, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].mountdir, BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: entries[i].type); BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: printf("\t\t}\n"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_free(entries); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_msg_limits(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_msg_limits buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_msg_limits(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_msg_limits); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgpool, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmap, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmax, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmnb, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgmni, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgssz, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(msgtql, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netload(const char *iface) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netload buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_netload(&buf, iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netload); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: printf("glibtop_get_netload (iface = \"%s\")\n", iface); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_netlist(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_netlist buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: char **devices; BUILDSTDERR: ~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: devices = glibtop_get_netlist(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_netlist); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: for(i = 0; i < buf.number; ++i) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: printf("\t%s\n", devices[i]); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: g_strfreev(devices); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_swap(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_swap buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_swap(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_swap); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(total, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(used, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(free, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pagein, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(pageout, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_uptime(void) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_uptime buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_uptime(&buf); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_uptime); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(uptime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(idletime, "%f"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(boot_time, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_kernel(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_kernel buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_kernel(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_kernel); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(k_flags, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(min_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(maj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmin_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(cmaj_flt, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_mem(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_mem buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: glibtop_get_proc_mem(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_mem); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(size, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(vsize, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(resident, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(share, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(rss, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(rss_rlim, "%llu"); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: FOOTER_PPRINT(); BUILDSTDERR: ~~~~~~~~~~~~~~~~ BUILDSTDERR: } BUILDSTDERR: ~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: static void pprint_get_proc_affinity(pid_t pid) BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: { BUILDSTDERR: ~ BUILDSTDERR: glibtop_proc_affinity buf; BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: guint32 i; BUILDSTDERR: ~~~~~~~~~~ BUILDSTDERR: guint16* cpus; BUILDSTDERR: ~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: cpus = glibtop_get_proc_affinity(&buf, pid); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: BUILDSTDERR: BUILDSTDERR: HEADER_PPRINT(glibtop_get_proc_affinity); BUILDSTDERR: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ~~~~~~~~~~~~ BUILDSTDERR: pprint.c:341:3: note: in expansion of macro 'PPRINT' BUILDSTDERR: PPRINT(flags, "%#llx"); BUILDSTDERR: ^~~~~~ CCLD diskio CCLD pprint make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/examples' Making all in doc make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc' Making all in reference make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc/reference' make[3]: Nothing to be done for 'all'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc/reference' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[3]: Nothing to be done for 'all-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0' + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.Dgzcce + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 BUILDSTDERR: ++ dirname /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 + cd libgtop-2.38.0 + /usr/bin/make install DESTDIR=/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 'INSTALL=/usr/bin/install -p' Making install in po make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/po' installing am.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/am/LC_MESSAGES/libgtop.mo installing ar.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ar/LC_MESSAGES/libgtop.mo installing as.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/as/LC_MESSAGES/libgtop.mo installing ast.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ast/LC_MESSAGES/libgtop.mo installing az.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/az/LC_MESSAGES/libgtop.mo installing be.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/be/LC_MESSAGES/libgtop.mo installing bg.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/bg/LC_MESSAGES/libgtop.mo installing bn.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/bn/LC_MESSAGES/libgtop.mo installing bn_IN.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/bn_IN/LC_MESSAGES/libgtop.mo installing bs.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/bs/LC_MESSAGES/libgtop.mo installing ca.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ca/LC_MESSAGES/libgtop.mo installing ca@valencia.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ca@valencia/LC_MESSAGES/libgtop.mo installing cs.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/cs/LC_MESSAGES/libgtop.mo installing cy.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/cy/LC_MESSAGES/libgtop.mo installing da.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/da/LC_MESSAGES/libgtop.mo installing de.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/de/LC_MESSAGES/libgtop.mo installing dz.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/dz/LC_MESSAGES/libgtop.mo installing el.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/el/LC_MESSAGES/libgtop.mo installing en_CA.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/en_CA/LC_MESSAGES/libgtop.mo installing en_GB.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/en_GB/LC_MESSAGES/libgtop.mo installing en@shaw.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/en@shaw/LC_MESSAGES/libgtop.mo installing eo.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/eo/LC_MESSAGES/libgtop.mo installing es.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/es/LC_MESSAGES/libgtop.mo installing et.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/et/LC_MESSAGES/libgtop.mo installing eu.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/eu/LC_MESSAGES/libgtop.mo installing fa.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/fa/LC_MESSAGES/libgtop.mo installing fi.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/fi/LC_MESSAGES/libgtop.mo installing fr.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/fr/LC_MESSAGES/libgtop.mo installing fur.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/fur/LC_MESSAGES/libgtop.mo installing ga.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ga/LC_MESSAGES/libgtop.mo installing gl.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/gl/LC_MESSAGES/libgtop.mo installing gu.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/gu/LC_MESSAGES/libgtop.mo installing he.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/he/LC_MESSAGES/libgtop.mo installing hi.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/hi/LC_MESSAGES/libgtop.mo installing hr.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/hr/LC_MESSAGES/libgtop.mo installing hu.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/hu/LC_MESSAGES/libgtop.mo installing id.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/id/LC_MESSAGES/libgtop.mo installing it.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/it/LC_MESSAGES/libgtop.mo installing ja.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ja/LC_MESSAGES/libgtop.mo installing ka.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ka/LC_MESSAGES/libgtop.mo installing kn.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/kn/LC_MESSAGES/libgtop.mo installing ko.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ko/LC_MESSAGES/libgtop.mo installing ku.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ku/LC_MESSAGES/libgtop.mo installing ky.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ky/LC_MESSAGES/libgtop.mo installing la.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/la/LC_MESSAGES/libgtop.mo installing lt.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/lt/LC_MESSAGES/libgtop.mo installing lv.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/lv/LC_MESSAGES/libgtop.mo installing mai.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/mai/LC_MESSAGES/libgtop.mo installing mg.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/mg/LC_MESSAGES/libgtop.mo installing mi.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/mi/LC_MESSAGES/libgtop.mo installing mk.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/mk/LC_MESSAGES/libgtop.mo installing ml.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ml/LC_MESSAGES/libgtop.mo installing mn.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/mn/LC_MESSAGES/libgtop.mo installing mr.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/mr/LC_MESSAGES/libgtop.mo installing ms.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ms/LC_MESSAGES/libgtop.mo installing nb.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/nb/LC_MESSAGES/libgtop.mo installing ne.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ne/LC_MESSAGES/libgtop.mo installing nl.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/nl/LC_MESSAGES/libgtop.mo installing nn.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/nn/LC_MESSAGES/libgtop.mo installing oc.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/oc/LC_MESSAGES/libgtop.mo installing or.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/or/LC_MESSAGES/libgtop.mo installing pa.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/pa/LC_MESSAGES/libgtop.mo installing pl.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/pl/LC_MESSAGES/libgtop.mo installing pt.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/pt/LC_MESSAGES/libgtop.mo installing pt_BR.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/pt_BR/LC_MESSAGES/libgtop.mo installing ro.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ro/LC_MESSAGES/libgtop.mo installing ru.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ru/LC_MESSAGES/libgtop.mo installing rw.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/rw/LC_MESSAGES/libgtop.mo installing sk.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/sk/LC_MESSAGES/libgtop.mo installing sl.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/sl/LC_MESSAGES/libgtop.mo installing sq.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/sq/LC_MESSAGES/libgtop.mo installing sr.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/sr/LC_MESSAGES/libgtop.mo installing sr@latin.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/sr@latin/LC_MESSAGES/libgtop.mo installing sv.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/sv/LC_MESSAGES/libgtop.mo installing ta.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ta/LC_MESSAGES/libgtop.mo installing te.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/te/LC_MESSAGES/libgtop.mo installing tg.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/tg/LC_MESSAGES/libgtop.mo installing th.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/th/LC_MESSAGES/libgtop.mo installing tr.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/tr/LC_MESSAGES/libgtop.mo installing ug.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/ug/LC_MESSAGES/libgtop.mo installing uk.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/uk/LC_MESSAGES/libgtop.mo installing vi.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/vi/LC_MESSAGES/libgtop.mo installing xh.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/xh/LC_MESSAGES/libgtop.mo installing zh_CN.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/zh_CN/LC_MESSAGES/libgtop.mo installing zh_HK.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/zh_HK/LC_MESSAGES/libgtop.mo installing zh_TW.gmo as /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/locale/zh_TW/LC_MESSAGES/libgtop.mo if test "libgtop" = "gettext-tools"; then \ /usr/bin/mkdir -p /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/gettext/po; \ for file in Makefile.in.in remove-potcdate.sin quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot Makevars.template; do \ /usr/bin/install -p -m 644 ./$file \ /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/gettext/po/$file; \ done; \ for file in Makevars; do \ rm -f /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/gettext/po/$file; \ done; \ else \ : ; \ fi make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/po' Making install in misc make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/misc' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/misc' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/misc' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/misc' Making install in include make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include' Making install in glibtop make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include/glibtop' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include/glibtop' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/include/libgtop-2.0/glibtop' /usr/bin/install -p -m 644 close.h loadavg.h prockernel.h procstate.h sem_limits.h uptime.h command.h mem.h proclist.h proctime.h shm_limits.h cpu.h msg_limits.h procmem.h procuid.h swap.h procsegment.h sysdeps.h global.h procsignal.h union.h gnuserv.h parameter.h mountlist.h fsusage.h procmap.h signal.h sysinfo.h ppp.h procargs.h netload.h procwd.h procaffinity.h procio.h netlist.h procopenfiles.h open.h '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/include/libgtop-2.0/glibtop' make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include/glibtop' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include/glibtop' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/include' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/include' Making install in sysdeps make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' Making install in common make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/common' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/common' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/common' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/common' Making install in linux make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/linux' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/linux' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/include/libgtop-2.0' /usr/bin/install -p -m 644 glibtop_server.h glibtop_machine.h '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/include/libgtop-2.0' make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/linux' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps/linux' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/sysdeps' Making install in lib make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/lib' /usr/bin/make install-am make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/lib' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/lib' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64' /bin/sh ../libtool --mode=install /usr/bin/install -p libgtop-2.0.la '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64' libtool: install: /usr/bin/install -p .libs/libgtop-2.0.so.11.0.0 /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/libgtop-2.0.so.11.0.0 libtool: install: (cd /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64 && { ln -s -f libgtop-2.0.so.11.0.0 libgtop-2.0.so.11 || { rm -f libgtop-2.0.so.11 && ln -s libgtop-2.0.so.11.0.0 libgtop-2.0.so.11; }; }) libtool: install: (cd /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64 && { ln -s -f libgtop-2.0.so.11.0.0 libgtop-2.0.so || { rm -f libgtop-2.0.so && ln -s libgtop-2.0.so.11.0.0 libgtop-2.0.so; }; }) libtool: install: /usr/bin/install -p .libs/libgtop-2.0.lai /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/libgtop-2.0.la BUILDSTDERR: libtool: warning: remember to run 'libtool --finish /usr/lib64' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/gir-1.0' /usr/bin/install -p -m 644 GTop-2.0.gir '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/gir-1.0' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/girepository-1.0' /usr/bin/install -p -m 644 GTop-2.0.typelib '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/girepository-1.0' make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/lib' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/lib' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/lib' Making install in src make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[3]: Nothing to be done for 'install-exec-am'. make[3]: Nothing to be done for 'install-data-am'. make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/src' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/src' Making install in examples make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/examples' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/examples' make[2]: Nothing to be done for 'install-exec-am'. make[2]: Nothing to be done for 'install-data-am'. make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/examples' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/examples' Making install in doc make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc' Making install in reference make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc/reference' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc/reference' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/install -p -m 644 ./html/home.png /usr/bin/install -p -m 644 ./html/index.html /usr/bin/install -p -m 644 ./html/left-insensitive.png /usr/bin/install -p -m 644 ./html/left.png /usr/bin/install -p -m 644 ./html/libgtop-Close.html /usr/bin/install -p -m 644 ./html/libgtop-Command.html /usr/bin/install -p -m 644 ./html/libgtop-GlibTop-Server.html /usr/bin/install -p -m 644 ./html/libgtop-GlibTop.html /usr/bin/install -p -m 644 ./html/libgtop-Net-List.html /usr/bin/install -p -m 644 ./html/libgtop-Net-Load.html /usr/bin/install -p -m 644 ./html/libgtop-PPP.html /usr/bin/install -p -m 644 ./html/libgtop-Process-Arguments.html /usr/bin/install -p -m 644 ./html/libgtop-Process-List.html /usr/bin/install -p -m 644 ./html/libgtop-Process-Time.html /usr/bin/install -p -m 644 ./html/libgtop-Shared-Memory-Limits.html /usr/bin/install -p -m 644 ./html/libgtop-Uptime.html /usr/bin/install -p -m 644 ./html/libgtop-cpu.html /usr/bin/install -p -m 644 ./html/libgtop-fsusage.html /usr/bin/install -p -m 644 ./html/libgtop-lib.html /usr/bin/install -p -m 644 ./html/libgtop-loadavg.html /usr/bin/install -p -m 644 ./html/libgtop-mem.html /usr/bin/install -p -m 644 ./html/libgtop-mountlist.html /usr/bin/install -p -m 644 ./html/libgtop-msg-limits.html /usr/bin/install -p -m 644 ./html/libgtop-open.html /usr/bin/install -p -m 644 ./html/libgtop-parameter.html /usr/bin/install -p -m 644 ./html/libgtop-prockernel.html /usr/bin/install -p -m 644 ./html/libgtop-procmap.html /usr/bin/install -p -m 644 ./html/libgtop-procmem.html /usr/bin/install -p -m 644 ./html/libgtop-procopenfiles.html /usr/bin/install -p -m 644 ./html/libgtop-procsegment.html /usr/bin/install -p -m 644 ./html/libgtop-procsignal.html /usr/bin/install -p -m 644 ./html/libgtop-procstate.html /usr/bin/install -p -m 644 ./html/libgtop-procuid.html /usr/bin/install -p -m 644 ./html/libgtop-sem-limits.html /usr/bin/install -p -m 644 ./html/libgtop-signal.html /usr/bin/install -p -m 644 ./html/libgtop-swap.html /usr/bin/install -p -m 644 ./html/libgtop-sysdeps.html /usr/bin/install -p -m 644 ./html/libgtop-sysinfo.html /usr/bin/install -p -m 644 ./html/libgtop-union.html /usr/bin/install -p -m 644 ./html/libgtop-version.html /usr/bin/install -p -m 644 ./html/libgtop-white-paper-overview.html /usr/bin/install -p -m 644 ./html/libgtop-white-paper.html /usr/bin/install -p -m 644 ./html/libgtop.devhelp2 /usr/bin/install -p -m 644 ./html/right-insensitive.png /usr/bin/install -p -m 644 ./html/right.png /usr/bin/install -p -m 644 ./html/style.css /usr/bin/install -p -m 644 ./html/up-insensitive.png /usr/bin/install -p -m 644 ./html/up.png make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc/reference' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc/reference' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[3]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[3]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/info' /usr/bin/install -p -m 644 ./libgtop2.info '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/info' install-info --info-dir='/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/info' '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/info/libgtop2.info' make[3]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0/doc' make[1]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0' make[2]: Entering directory '/builddir/build/BUILD/libgtop-2.38.0' make[2]: Nothing to be done for 'install-exec-am'. /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/include/libgtop-2.0' /usr/bin/install -p -m 644 glibtop.h libgtopconfig.h '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/include/libgtop-2.0' /usr/bin/mkdir -p '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/pkgconfig' /usr/bin/install -p -m 644 libgtop-2.0.pc '/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/pkgconfig' make[2]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0' make[1]: Leaving directory '/builddir/build/BUILD/libgtop-2.38.0' + find /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 -name '*.la' -delete + /usr/lib/rpm/find-lang.sh /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 libgtop + /usr/lib/rpm/find-debuginfo.sh -j4 --strict-build-id -m -i --build-id-seed 2.38.0-4.fc30 --unique-debug-suffix -2.38.0-4.fc30.riscv64 --unique-debug-src-base libgtop2-2.38.0-4.fc30.riscv64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 -S debugsourcefiles.list /builddir/build/BUILD/libgtop-2.38.0 explicitly decompress any DWARF compressed ELF sections in /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/libgtop-2.0.so.11.0.0 extracting debug info from /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/lib64/libgtop-2.0.so.11.0.0 /usr/lib/rpm/sepdebugcrcfix: Updated 1 CRC32s, 0 CRC32s did match. BUILDSTDERR: cpio: sysdeps/linux/sysdeps/linux/procmap_smaps.gperf: Cannot stat: No such file or directory BUILDSTDERR: 594 blocks + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig BUILDSTDERR: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: libgtop2-2.38.0-4.fc30.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.FSt759 + umask 022 + cd /builddir/build/BUILD + cd libgtop-2.38.0 + DOCDIR=/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/doc/libgtop2 + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/doc/libgtop2 + cp -pr AUTHORS /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/doc/libgtop2 + cp -pr NEWS /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/doc/libgtop2 + cp -pr README /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/doc/libgtop2 + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.hnPIZ7 + umask 022 + cd /builddir/build/BUILD + cd libgtop-2.38.0 + LICENSEDIR=/builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/licenses/libgtop2 + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/licenses/libgtop2 + cp -pr COPYING /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64/usr/share/licenses/libgtop2 + exit 0 Provides: libgtop-2.0.so.11()(64bit) libgtop2 = 2.38.0-4.fc30 libgtop2(riscv-64) = 2.38.0-4.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) rtld(GNU_HASH) Processing files: libgtop2-devel-2.38.0-4.fc30.riscv64 Provides: libgtop2-devel = 2.38.0-4.fc30 libgtop2-devel(riscv-64) = 2.38.0-4.fc30 pkgconfig(libgtop-2.0) = 2.38.0 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/pkg-config libgtop-2.0.so.11()(64bit) pkgconfig(glib-2.0) Processing files: libgtop2-debugsource-2.38.0-4.fc30.riscv64 Provides: libgtop2-debugsource = 2.38.0-4.fc30 libgtop2-debugsource(riscv-64) = 2.38.0-4.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: libgtop2-debuginfo-2.38.0-4.fc30.riscv64 Provides: debuginfo(build-id) = df56b62b619aa32b8956b1d0b71f9ee72fa3c1dd libgtop2-debuginfo = 2.38.0-4.fc30 libgtop2-debuginfo(riscv-64) = 2.38.0-4.fc30 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: libgtop2-debugsource(riscv-64) = 2.38.0-4.fc30 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 Wrote: /builddir/build/RPMS/libgtop2-2.38.0-4.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/libgtop2-devel-2.38.0-4.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/libgtop2-debugsource-2.38.0-4.fc30.riscv64.rpm Wrote: /builddir/build/RPMS/libgtop2-debuginfo-2.38.0-4.fc30.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.HyOkdK + umask 022 + cd /builddir/build/BUILD + cd libgtop-2.38.0 + /usr/bin/rm -rf /builddir/build/BUILDROOT/libgtop2-2.38.0-4.fc30.riscv64 + exit 0 Child return code was: 0