search for: rusag

Displaying 18 results from an estimated 18 matches for "rusag".

Did you mean: rusage
2003 Jun 22
16
[Bug 600] compilation of ssh-askpass or ssh-rand-helper fails on NCR MP-RAS v3.02
...keysign\" - D_PATH_SSH_PIDDIR=\"/usr/local/etc\" -D_PATH_PRIVSEP_CHROOT_DIR=\"/var/empty\" -DSSH_RAND_HELPER=\"/usr/local/libexec/ssh-rand-helper\" -DHAVE_CONFIG_H -c ssh -rand-helper.c E "ssh-rand-helper.c",L252/C16(#444): ru | Type `double stir_rusage(int who,double entropy_estimate)::struct rusage' ( "ssh-rand-helper.c",L252/C9) of variable is a yet undefined struct/union. E "ssh-rand-helper.c",L257/C23(#80): ru | sizeof can't be applied to an incomplete struct/union. w "ssh-rand-helper.c",L712/C30(#...
2006 Mar 02
1
Failing to understand getrusage()
I'm failing to understand how getrusage() works, which is a bit perplexing, because it doesn't seem like it would be terribly complicated. I've attached the code. My aim is to verify that I can use getrusage() to do (admittedly crude) instrumentation of which functions in my program are allocating lots of memory[1]. So I figu...
2010 Apr 25
2
[git pull] small fixes, sh4, getruage() README's
hello hpa, current patch queue for review, please pull: git pull git://git.debian.org/users/maks/klibc.git maks Aurelien Jarno (1): [klibc] sh4: syscalls fixes Benjamin Cama (1): [klibc] fstype: btrfs size endianness fix Thorsten Glaser (1): [klibc] add getrusage() maximilian attems (3): [klibc] resume: silence warning on resume try [klibc] bootp_packet.h minor stylistic fix [klibc] fstype: list the includes in alphabetic order git diff -M --stat --summary master...maks usr/include/sys/resource.h | 2 ++ usr/kinit/fstype/fs...
2014 Mar 11
0
[PATCH] add mips64 support
...ude/sys/resource.h b/usr/include/sys/resource.h > index 5d8bd52..35398a7 100644 > --- a/usr/include/sys/resource.h > +++ b/usr/include/sys/resource.h > @@ -12,6 +12,8 @@ > __extern int getpriority(int, int); > __extern int setpriority(int, int, int); > > -__extern int getrusage(int, struct rusage *); > +#if !defined(__mips64) > + __extern int getrusage(int, struct rusage *); > +#endif > Say what? > diff --git a/usr/klibc/arch/mips64/crt0.S b/usr/klibc/arch/mips64/crt0.S > new file mode 100644 > index 0000000..142d9f2 > --- /dev/null > +++ b...
2015 May 18
5
kernel/libc uapi changes for y2038
...o deal with modified data structures, but left the question open on how these should be best accessed from libc. The patches introduce a new __kernel_time64_t type and based on that five new data structured: struct __kernel_timespec, struct __kernel_itimerspec, struct __kernel_stat, struct __kernel_rusage, and struct __kernel_timex. This works fine for the case when all libc implementations provide their own definitions to user space, but not for the simplest case (e.g. klibc) where the user-visible structures come directly from the kernel uapi headers. I still don't know what model the variou...
2023 Jan 14
1
[klibc:time64] time: Use 64-bit time types on all architectures
...ep the old struct itimerval definition, because there aren't simple replacements available for the {get,set}itimer() system calls and it holds relative times that don't need the extra range - Similarly, keep the old struct timeval definition as timeval_old and use it in struct rusage - Copy struct timezone and various important macro definitions - Change various system call wrappers to use the _time64 variants on 32-bit architectures Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/include/sys/resource.h | 4 ++-- usr/include/sys/time.h | 56 ++++...
2014 Mar 11
4
[PATCH] add mips64 support
.../raid/md_p.h> diff --git a/usr/include/sys/resource.h b/usr/include/sys/resource.h index 5d8bd52..35398a7 100644 --- a/usr/include/sys/resource.h +++ b/usr/include/sys/resource.h @@ -12,6 +12,8 @@ __extern int getpriority(int, int); __extern int setpriority(int, int, int); -__extern int getrusage(int, struct rusage *); +#if !defined(__mips64) + __extern int getrusage(int, struct rusage *); +#endif #endif /* _SYS_RESOURCE_H */ diff --git a/usr/klibc/arch/mips64/Kbuild b/usr/klibc/arch/mips64/Kbuild index 970c0f8..972e450 100644 --- a/usr/klibc/arch/mips64/Kbuild +++ b/usr/klibc/arch/m...
2000 Jun 15
1
problem in entropy.c if no getrusage
entropy.c assumes RUSAGE_SELF and RUSAGE_CHILDREN *** entropy.c.orig Thu Jun 15 13:57:28 2000 --- entropy.c Thu Jun 15 13:58:25 2000 *************** *** 201,207 **** --- 201,209 ---- total_entropy_estimate += stir_gettimeofday(1.0); total_entropy_estimate += stir_clock(0.2); + #ifdef HAVE_GETRUS...
2008 Jan 11
0
Deadlock of asterisk on app_system
...x00000036fb2955d3 in fork () from /lib64/libc.so.6^ No symbol table info available.^ #4 0x000000000042727b in ast_safe_system (s=0x41a3c9f0 "sudo -u apache echo `date` 1200071726.3163 SIP/204.11.200.152-c0070ed0 8505755211 28901 0 >> /var/l pid = 0^ x = -1073476672^ res = 10922^ rusage = {ru_utime = {tv_sec = 1101244208, tv_usec = 1101244640}, ru_stime = {tv_sec = 1101244224, tv_usec = 5241072}, ru_maxrss = 469252700480, ru_ixrss status = 0^ __PRETTY_FUNCTION__ = "ast_safe_system"^ ... Seems that asterisk got locked on fork() and that's quite strange. Other th...
2010 Jul 07
0
[git pull v2] x86_32, sh4, getrusage()
...s Benjamin Cama (1): [klibc] fstype: btrfs size endianness fix Mike Waychison (2): [klibc] CFLAGS: enable -fwrapv [klibc] Add ancillary data structures and macros to sys/socket.h Sam Ravnborg (1): [klibc] fix build on native i386 Thorsten Glaser (1): [klibc] add getrusage() maximilian attems (6): [klibc] resume: silence warning on resume try [klibc] bootp_packet.h minor stylistic fix [klibc] fstype: list the includes in alphabetic order [klibc] ipconfig: packet_send() fix uninitialized valgrind errors [klibc] valgrind: netdev_sif_addr...
2023 Jan 14
1
[klibc:time64] resource: Avoid using <linux/resource.h>
...urce.h +++ b/usr/include/sys/resource.h @@ -6,8 +6,39 @@ #define _SYS_RESOURCE_H #include <klibc/extern.h> -#include <sys/types.h> /* MUST be included before linux/resource.h */ -#include <linux/resource.h> +#include <sys/types.h> +#include <sys/time.h> + +#define RUSAGE_SELF 0 +#define RUSAGE_CHILDREN (-1) +#define RUSAGE_BOTH (-2) +#define RUSAGE_THREAD 1 + +struct rusage { + struct timeval ru_utime; /* user time used */ + struct timeval ru_stime; /* system time used */ + __kernel_long_t ru_maxrss; /* maximum resident set size */ + __kernel_long_t ru_ixrss; /* i...
2006 Mar 17
1
[PATCH] OpenSSL RNG initialization
...\ strcasecmp stricmp vsnprintf vsyslog writev pread \ setrlimit setproctitle seteuid setreuid setegid setresgid \ - strtoull strtouq setpriority quotactl getmntent kqueue kevent) + strtoull strtouq setpriority quotactl getmntent kqueue kevent \ + getrusage) dnl * I/O loop function have_ioloop=no Index: src/lib/lib.h =================================================================== RCS file: /home/cvs/dovecot/src/lib/lib.h,v retrieving revision 1.20 diff -u -r1.20 lib.h --- src/lib/lib.h 25 Sep 2005 10:44:04 -0000 1.20 +++ src/lib/lib.h 10 Mar 2006...
2004 May 03
3
R 1.9.0 on AIX, 64-bit
I'm trying to get R 1.9.0 running on AIX 5.1 with the standard AIX compilers (xlc, xlf) and it is failing 2 of the tests, test-Reg in reg-tests-1.R like this: bash-2.05b$ tail -30 reg-tests-1.Rout.fail [,1] [,2] [1,] 1 3 [2,] 2 4 [3,] 1 3 [4,] 2 4 > stopifnot(typeof(res) == "list") > ## were not implemented in 1.8.1 > > > ## Date objects with
2012 Sep 04
4
[LLVMdev] Clang/llvm performance tests on FreeBSD 10.0-CURRENT
...950, 1.86GHz Core2 Xeon, 2x4 Core, 16G RAM. It runs FreeBSD/amd64 10.0-CURRENT #0 r231914: Sun Feb 19 17:24:37 UTC 2012. Each build was repeated 6 times, after cleaning out the object directories, and syncing. Each build was timed using the system time(1) command, using the -l argument to obtain rusage information. The programs tested by compilation were: - A large C++ program: clang 3.2, as it occurs in the FreeBSD 10.0-CURRENT source tree as of r239532. - A medium-large C program: gcc 4.2.1, as it occurs in the FreeBSD 10.0-CURRENT source tree as of r239532. - A large C++ library: boost 1...
2017 Jun 19
29
[PATCH v7 00/29] Reimplement inspection in the daemon.
v6 was posted here: https://www.redhat.com/archives/libguestfs/2017-June/msg00103.html and this requires the utilities refactoring posted here: https://www.redhat.com/archives/libguestfs/2017-June/msg00169.html Inspection is now complete[*], although not very well tested. I'm intending to compare the output of many guests using old & new virt-inspector to see if I can find any
2017 Jun 21
45
[PATCH v8 00/42] Refactor utilities and reimplement inspection.
v7 was: https://www.redhat.com/archives/libguestfs/2017-June/msg00169.html https://www.redhat.com/archives/libguestfs/2017-June/msg00184.html I believe this addresses all comments received so far. Also it now passes a test where I compared about 100 disk images processed with old and new virt-inspector binaries. The output is identical in all cases except one which is caused by a bug in blkid
2013 Aug 21
0
Build problems: klibc with Linux 3.10.7
...endmsg SYSCALL FOUND: fcntl SYSCALL FOUND: rmdir SYSCALL FOUND: getdents64 SYSCALL FOUND: geteuid SYSCALL FOUND: mq_open SYSCALL FOUND: alarm SYSCALL FOUND: futex SYSCALL FOUND: pciconfig_iobase SYSCALL FOUND: umount2 SYSCALL FOUND: mknodat SYSCALL FOUND: fork SYSCALL FOUND: creat SYSCALL FOUND: getrusage SYSCALL FOUND: sched_rr_get_interval SYSCALL FOUND: ssetmask SYSCALL FOUND: stty SYSCALL FOUND: set_mempolicy SYSCALL FOUND: clock_gettime SYSCALL FOUND: getsockopt SYSCALL FOUND: modify_ldt SYSCALL FOUND: idle SYSCALL FOUND: signal SYSCALL FOUND: linkat SYSCALL FOUND: lstat64 SYSCALL FOUND: keyct...
2013 Aug 21
5
Build problems: klibc with Linux 3.10.7
On Tue, Aug 20, 2013 at 07:44:39AM +0200, leroy christophe wrote: > > > Find attached two patches I have in order to build klibc 2.0.2 > against kernel 3.8.13 > We had to introduce those patches when going from kernel 3.6 to kernel 3.7 > Hope it helps. > those patches are wrong and again very brittle. just use the way it is described in `make help': A) cd ~/src/linux