summaryrefslogtreecommitdiff
path: root/lib/libkvm
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2024-07-08 13:18:27 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2024-07-08 13:18:27 +0000
commitd89fd7cebf377317b7fb87be0322cd5123977e2f (patch)
treeac5a4806b05a55aeb0f5b339cfd4edd55e7196bb /lib/libkvm
parent75518fa8eaa6911ea53a350c2d3e090ce8e963e3 (diff)
Adjust code since FILL_KPROC() got another argument since struct tusage
accounting was modified. OK dlg@ jca@
Diffstat (limited to 'lib/libkvm')
-rw-r--r--lib/libkvm/kvm_proc2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libkvm/kvm_proc2.c b/lib/libkvm/kvm_proc2.c
index a9368345dc9..637255a53a9 100644
--- a/lib/libkvm/kvm_proc2.c
+++ b/lib/libkvm/kvm_proc2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kvm_proc2.c,v 1.38 2022/02/22 17:35:01 deraadt Exp $ */
+/* $OpenBSD: kvm_proc2.c,v 1.39 2024/07/08 13:18:26 claudio Exp $ */
/* $NetBSD: kvm_proc.c,v 1.30 1999/03/24 05:50:50 mrg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -295,7 +295,7 @@ kvm_proclist(kvm_t *kd, int op, int arg, struct process *pr,
#define do_copy_str(_d, _s, _l) kvm_read(kd, (u_long)(_s), (_d), (_l)-1)
FILL_KPROC(&kp, do_copy_str, &proc, &process,
&ucred, &pgrp, process.ps_mainproc, pr, &sess,
- vmp, limp, sap, 0, 1);
+ vmp, limp, sap, &process.ps_tu, 0, 1);
/* stuff that's too painful to generalize */
kp.p_ppid = parent_pid;
@@ -388,7 +388,7 @@ kvm_proclist(kvm_t *kd, int op, int arg, struct process *pr,
}
FILL_KPROC(&kp, do_copy_str, &proc, &process,
&ucred, &pgrp, p, pr, &sess, vmp, limp, sap,
- 1, 1);
+ &proc.p_tu, 1, 1);
/* see above */
kp.p_ppid = parent_pid;