From ee8aa41dca9c2b80c69530257748c98ec748a04c Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sat, 3 Jun 2017 14:22:15 +0000 Subject: Decode the 'who' argument passed to getrusage(). Add a new sysdecode_getrusage_who() which decodes the RUSAGE_* constant passed as the first argument to getrusage(). Use this function in both kdump and truss to decode the first argument to getrusage(). PR: 215448 Submitted by: Anton Yuzhaninov MFC after: 1 month --- lib/libsysdecode/sysdecode.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/libsysdecode/sysdecode.h') diff --git a/lib/libsysdecode/sysdecode.h b/lib/libsysdecode/sysdecode.h index 03c12a5a7f8b..7619fa51736a 100644 --- a/lib/libsysdecode/sysdecode.h +++ b/lib/libsysdecode/sysdecode.h @@ -55,6 +55,7 @@ bool sysdecode_filemode(FILE *_fp, int _mode, int *_rem); bool sysdecode_flock_operation(FILE *_fp, int _operation, int *_rem); int sysdecode_freebsd_to_abi_errno(enum sysdecode_abi _abi, int _error); const char *sysdecode_getfsstat_mode(int _mode); +const char *sysdecode_getrusage_who(int _who); const char *sysdecode_idtype(int _idtype); const char *sysdecode_ioctlname(unsigned long _val); const char *sysdecode_ipproto(int _protocol); -- cgit v1.2.3