summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_thr.c
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2009-06-27 13:58:44 +0000
committerrwatson <rwatson@FreeBSD.org>2009-06-27 13:58:44 +0000
commitda78c9e4a2e1689a4d400553bb5f6aa0537c5f49 (patch)
tree18c823b27ab8bd9a1cd03dcca0ea5348975f3971 /sys/kern/kern_thr.c
parent3b6551a921beb7f1408f05c3730aa5802bd6e79c (diff)
downloadFreeBSD-src-da78c9e4a2e1689a4d400553bb5f6aa0537c5f49.zip
FreeBSD-src-da78c9e4a2e1689a4d400553bb5f6aa0537c5f49.tar.gz
Replace AUDIT_ARG() with variable argument macros with a set more more
specific macros for each audit argument type. This makes it easier to follow call-graphs, especially for automated analysis tools (such as fxr). In MFC, we should leave the existing AUDIT_ARG() macros as they may be used by third-party kernel modules. Suggested by: brooks Approved by: re (kib) Obtained from: TrustedBSD Project MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_thr.c')
-rw-r--r--sys/kern/kern_thr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_thr.c b/sys/kern/kern_thr.c
index 4059443..c478c63 100644
--- a/sys/kern/kern_thr.c
+++ b/sys/kern/kern_thr.c
@@ -350,7 +350,7 @@ thr_kill2(struct thread *td, struct thr_kill2_args *uap)
struct proc *p;
int error;
- AUDIT_ARG(signum, uap->sig);
+ AUDIT_ARG_SIGNUM(uap->sig);
if (uap->pid == td->td_proc->p_pid) {
p = td->td_proc;
@@ -358,7 +358,7 @@ thr_kill2(struct thread *td, struct thr_kill2_args *uap)
} else if ((p = pfind(uap->pid)) == NULL) {
return (ESRCH);
}
- AUDIT_ARG(process, p);
+ AUDIT_ARG_PROCESS(p);
error = p_cansignal(td, p, uap->sig);
if (error == 0) {
OpenPOWER on IntegriCloud