Date: Thu, 13 Oct 2011 14:42:36 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 200154 for review Message-ID: <201110131442.p9DEgaJs080329@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@200154?ac=10 Change 200154 by jhb@jhb_jhbbsd on 2011/10/13 14:41:46 Regen. Affected files ... .. //depot/projects/fadvise/sys/kern/init_sysent.c#2 edit .. //depot/projects/fadvise/sys/kern/syscalls.c#2 edit .. //depot/projects/fadvise/sys/kern/systrace_args.c#2 edit .. //depot/projects/fadvise/sys/sys/syscall.h#2 edit .. //depot/projects/fadvise/sys/sys/syscall.mk#2 edit .. //depot/projects/fadvise/sys/sys/sysproto.h#2 edit Differences ... ==== //depot/projects/fadvise/sys/kern/init_sysent.c#2 (text+ko) ==== @@ -565,5 +565,5 @@ { AS(rctl_add_rule_args), (sy_call_t *)sys_rctl_add_rule, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 528 = rctl_add_rule */ { AS(rctl_remove_rule_args), (sy_call_t *)sys_rctl_remove_rule, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 529 = rctl_remove_rule */ { AS(posix_fallocate_args), (sy_call_t *)sys_posix_fallocate, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 530 = posix_fallocate */ - { 0, (sy_call_t *)nosys, AUE_NULL, NULL, 0, 0, 0, SY_THR_ABSENT }, /* 531 = posix_fadvise */ + { AS(fadvise_args), (sy_call_t *)sys_fadvise, AUE_NULL, NULL, 0, 0, 0, SY_THR_STATIC }, /* 531 = fadvise */ }; ==== //depot/projects/fadvise/sys/kern/syscalls.c#2 (text+ko) ==== @@ -538,5 +538,5 @@ "rctl_add_rule", /* 528 = rctl_add_rule */ "rctl_remove_rule", /* 529 = rctl_remove_rule */ "posix_fallocate", /* 530 = posix_fallocate */ - "#531", /* 531 = posix_fadvise */ + "fadvise", /* 531 = fadvise */ }; ==== //depot/projects/fadvise/sys/kern/systrace_args.c#2 (text+ko) ==== @@ -3234,6 +3234,16 @@ *n_args = 3; break; } + /* fadvise */ + case 531: { + struct fadvise_args *p = params; + iarg[0] = p->fd; /* int */ + iarg[1] = p->offset; /* off_t */ + iarg[2] = p->len; /* off_t */ + iarg[3] = p->advice; /* int */ + *n_args = 4; + break; + } default: *n_args = 0; break; @@ -8603,6 +8613,25 @@ break; }; break; + /* fadvise */ + case 531: + switch(ndx) { + case 0: + p = "int"; + break; + case 1: + p = "off_t"; + break; + case 2: + p = "off_t"; + break; + case 3: + p = "int"; + break; + default: + break; + }; + break; default: break; }; ==== //depot/projects/fadvise/sys/sys/syscall.h#2 (text+ko) ==== @@ -446,4 +446,5 @@ #define SYS_rctl_add_rule 528 #define SYS_rctl_remove_rule 529 #define SYS_posix_fallocate 530 +#define SYS_fadvise 531 #define SYS_MAXSYSCALL 532 ==== //depot/projects/fadvise/sys/sys/syscall.mk#2 (text+ko) ==== @@ -394,4 +394,5 @@ rctl_get_limits.o \ rctl_add_rule.o \ rctl_remove_rule.o \ - posix_fallocate.o + posix_fallocate.o \ + fadvise.o ==== //depot/projects/fadvise/sys/sys/sysproto.h#2 (text+ko) ==== @@ -1733,6 +1733,12 @@ char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)]; char len_l_[PADL_(off_t)]; off_t len; char len_r_[PADR_(off_t)]; }; +struct fadvise_args { + char fd_l_[PADL_(int)]; int fd; char fd_r_[PADR_(int)]; + char offset_l_[PADL_(off_t)]; off_t offset; char offset_r_[PADR_(off_t)]; + char len_l_[PADL_(off_t)]; off_t len; char len_r_[PADR_(off_t)]; + char advice_l_[PADL_(int)]; int advice; char advice_r_[PADR_(int)]; +}; int nosys(struct thread *, struct nosys_args *); void sys_sys_exit(struct thread *, struct sys_exit_args *); int sys_fork(struct thread *, struct fork_args *); @@ -2109,6 +2115,7 @@ int sys_rctl_add_rule(struct thread *, struct rctl_add_rule_args *); int sys_rctl_remove_rule(struct thread *, struct rctl_remove_rule_args *); int sys_posix_fallocate(struct thread *, struct posix_fallocate_args *); +int sys_fadvise(struct thread *, struct fadvise_args *); #ifdef COMPAT_43 @@ -2799,6 +2806,7 @@ #define SYS_AUE_rctl_add_rule AUE_NULL #define SYS_AUE_rctl_remove_rule AUE_NULL #define SYS_AUE_posix_fallocate AUE_NULL +#define SYS_AUE_fadvise AUE_NULL #undef PAD_ #undef PADL_
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201110131442.p9DEgaJs080329>