svn commit: r328385 - stable/11/sys/kern
John Baldwin
jhb at FreeBSD.org
Thu Jan 25 00:09:45 UTC 2018
Author: jhb
Date: Thu Jan 25 00:09:44 2018
New Revision: 328385
URL: https://svnweb.freebsd.org/changeset/base/328385
Log:
MFC 312534: ANSYfy kern_ktrace.c and remove archaic register keyword
Modified:
stable/11/sys/kern/kern_ktrace.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/kern/kern_ktrace.c
==============================================================================
--- stable/11/sys/kern/kern_ktrace.c Thu Jan 25 00:08:13 2018 (r328384)
+++ stable/11/sys/kern/kern_ktrace.c Thu Jan 25 00:09:44 2018 (r328385)
@@ -437,9 +437,7 @@ ktr_freeproc(struct proc *p, struct ucred **uc, struct
}
void
-ktrsyscall(code, narg, args)
- int code, narg;
- register_t args[];
+ktrsyscall(int code, int narg, register_t args[])
{
struct ktr_request *req;
struct ktr_syscall *ktp;
@@ -468,9 +466,7 @@ ktrsyscall(code, narg, args)
}
void
-ktrsysret(code, error, retval)
- int code, error;
- register_t retval;
+ktrsysret(int code, int error, register_t retval)
{
struct ktr_request *req;
struct ktr_sysret *ktp;
@@ -637,9 +633,7 @@ ktrnamei(path)
}
void
-ktrsysctl(name, namelen)
- int *name;
- u_int namelen;
+ktrsysctl(int *name, u_int namelen)
{
struct ktr_request *req;
u_int mib[CTL_MAXNAME + 2];
@@ -671,11 +665,7 @@ ktrsysctl(name, namelen)
}
void
-ktrgenio(fd, rw, uio, error)
- int fd;
- enum uio_rw rw;
- struct uio *uio;
- int error;
+ktrgenio(int fd, enum uio_rw rw, struct uio *uio, int error)
{
struct ktr_request *req;
struct ktr_genio *ktg;
@@ -710,11 +700,7 @@ ktrgenio(fd, rw, uio, error)
}
void
-ktrpsig(sig, action, mask, code)
- int sig;
- sig_t action;
- sigset_t *mask;
- int code;
+ktrpsig(int sig, sig_t action, sigset_t *mask, int code)
{
struct thread *td = curthread;
struct ktr_request *req;
@@ -733,9 +719,7 @@ ktrpsig(sig, action, mask, code)
}
void
-ktrcsw(out, user, wmesg)
- int out, user;
- const char *wmesg;
+ktrcsw(int out, int user, const char *wmesg)
{
struct thread *td = curthread;
struct ktr_request *req;
@@ -756,10 +740,7 @@ ktrcsw(out, user, wmesg)
}
void
-ktrstruct(name, data, datalen)
- const char *name;
- void *data;
- size_t datalen;
+ktrstruct(const char *name, void *data, size_t datalen)
{
struct ktr_request *req;
char *buf;
@@ -782,10 +763,8 @@ ktrstruct(name, data, datalen)
}
void
-ktrcapfail(type, needed, held)
- enum ktr_cap_fail_type type;
- const cap_rights_t *needed;
- const cap_rights_t *held;
+ktrcapfail(enum ktr_cap_fail_type type, const cap_rights_t *needed,
+ const cap_rights_t *held)
{
struct thread *td = curthread;
struct ktr_request *req;
@@ -809,9 +788,7 @@ ktrcapfail(type, needed, held)
}
void
-ktrfault(vaddr, type)
- vm_offset_t vaddr;
- int type;
+ktrfault(vm_offset_t vaddr, int type)
{
struct thread *td = curthread;
struct ktr_request *req;
@@ -828,8 +805,7 @@ ktrfault(vaddr, type)
}
void
-ktrfaultend(result)
- int result;
+ktrfaultend(int result)
{
struct thread *td = curthread;
struct ktr_request *req;
@@ -857,13 +833,11 @@ struct ktrace_args {
#endif
/* ARGSUSED */
int
-sys_ktrace(td, uap)
- struct thread *td;
- register struct ktrace_args *uap;
+sys_ktrace(struct thread *td, struct ktrace_args *uap)
{
#ifdef KTRACE
- register struct vnode *vp = NULL;
- register struct proc *p;
+ struct vnode *vp = NULL;
+ struct proc *p;
struct pgrp *pg;
int facs = uap->facs & ~KTRFAC_ROOT;
int ops = KTROP(uap->ops);
@@ -1002,9 +976,7 @@ done:
/* ARGSUSED */
int
-sys_utrace(td, uap)
- struct thread *td;
- register struct utrace_args *uap;
+sys_utrace(struct thread *td, struct utrace_args *uap)
{
#ifdef KTRACE
@@ -1038,11 +1010,7 @@ sys_utrace(td, uap)
#ifdef KTRACE
static int
-ktrops(td, p, ops, facs, vp)
- struct thread *td;
- struct proc *p;
- int ops, facs;
- struct vnode *vp;
+ktrops(struct thread *td, struct proc *p, int ops, int facs, struct vnode *vp)
{
struct vnode *tracevp = NULL;
struct ucred *tracecred = NULL;
@@ -1093,14 +1061,11 @@ ktrops(td, p, ops, facs, vp)
}
static int
-ktrsetchildren(td, top, ops, facs, vp)
- struct thread *td;
- struct proc *top;
- int ops, facs;
- struct vnode *vp;
+ktrsetchildren(struct thread *td, struct proc *top, int ops, int facs,
+ struct vnode *vp)
{
- register struct proc *p;
- register int ret = 0;
+ struct proc *p;
+ int ret = 0;
p = top;
PROC_LOCK_ASSERT(p, MA_OWNED);
@@ -1260,9 +1225,7 @@ ktr_writerequest(struct thread *td, struct ktr_request
* so, only root may further change it.
*/
static int
-ktrcanset(td, targetp)
- struct thread *td;
- struct proc *targetp;
+ktrcanset(struct thread *td, struct proc *targetp)
{
PROC_LOCK_ASSERT(targetp, MA_OWNED);
More information about the svn-src-stable
mailing list