vnode_if.awk (190518) | vnode_if.awk (211616) |
---|---|
1#!/usr/bin/awk -f 2 3#- 4# Copyright (c) 1992, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30 31# 32# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 | 1#!/usr/bin/awk -f 2 3#- 4# Copyright (c) 1992, 1993 5# The Regents of the University of California. All rights reserved. 6# 7# Redistribution and use in source and binary forms, with or without 8# modification, are permitted provided that the following conditions --- 16 unchanged lines hidden (view full) --- 25# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 26# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 27# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 28# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 29# SUCH DAMAGE. 30 31# 32# @(#)vnode_if.sh 8.1 (Berkeley) 6/10/93 |
33# $FreeBSD: head/sys/tools/vnode_if.awk 190518 2009-03-29 03:30:15Z rwatson $ | 33# $FreeBSD: head/sys/tools/vnode_if.awk 211616 2010-08-22 11:18:57Z rpaulo $ |
34# 35# Script to produce VFS front-end sugar. 36# 37# usage: vnode_if.awk <srcfile> [-c | -h | -p | -q] 38# (where <srcfile> is currently /sys/kern/vnode_if.src) 39# The source file must have a .src extension 40# 41 --- 95 unchanged lines hidden (view full) --- 137if (!srcfile) 138 usage(); 139 140common_head = \ 141 "/*\n" \ 142 " * This file is produced automatically.\n" \ 143 " * Do not modify anything in here by hand.\n" \ 144 " *\n" \ | 34# 35# Script to produce VFS front-end sugar. 36# 37# usage: vnode_if.awk <srcfile> [-c | -h | -p | -q] 38# (where <srcfile> is currently /sys/kern/vnode_if.src) 39# The source file must have a .src extension 40# 41 --- 95 unchanged lines hidden (view full) --- 137if (!srcfile) 138 usage(); 139 140common_head = \ 141 "/*\n" \ 142 " * This file is produced automatically.\n" \ 143 " * Do not modify anything in here by hand.\n" \ 144 " *\n" \ |
145 " * Created from $FreeBSD: head/sys/tools/vnode_if.awk 190518 2009-03-29 03:30:15Z rwatson $\n" \ | 145 " * Created from $FreeBSD: head/sys/tools/vnode_if.awk 211616 2010-08-22 11:18:57Z rpaulo $\n" \ |
146 " */\n" \ 147 "\n"; 148 149if (pfile) { 150 printp(common_head) 151 printp("struct vop_vector {") 152 printp("\tstruct vop_vector\t*vop_default;") 153 printp("\tvop_bypass_t\t*vop_bypass;") --- 196 unchanged lines hidden (view full) --- 350 } 351 } 352 353 sub(/^\|/, "", releflags); 354 printc("\tVDESC_NO_OFFSET"); 355 printc("};"); 356 357 printc("\n"); | 146 " */\n" \ 147 "\n"; 148 149if (pfile) { 150 printp(common_head) 151 printp("struct vop_vector {") 152 printp("\tstruct vop_vector\t*vop_default;") 153 printp("\tvop_bypass_t\t*vop_bypass;") --- 196 unchanged lines hidden (view full) --- 350 } 351 } 352 353 sub(/^\|/, "", releflags); 354 printc("\tVDESC_NO_OFFSET"); 355 printc("};"); 356 357 printc("\n"); |
358 printc("SDT_PROBE_DEFINE2(vfs, vop, " name ", entry, \"struct vnode *\", \"struct " name "_args *\");\n"); 359 printc("SDT_PROBE_DEFINE3(vfs, vop, " name ", return, \"struct vnode *\", \"struct " name "_args *\", \"int\");\n"); | 358 printc("SDT_PROBE_DEFINE2(vfs, vop, " name ", entry, entry, \"struct vnode *\", \"struct " name "_args *\");\n"); 359 printc("SDT_PROBE_DEFINE3(vfs, vop, " name ", return, return, \"struct vnode *\", \"struct " name "_args *\", \"int\");\n"); |
360 361 # Print out function. 362 printc("\nint\n" uname "_AP(struct " name "_args *a)"); 363 printc("{"); 364 printc(""); 365 printc("\treturn(" uname "_APV(a->a_" args[0] "->v_op, a));"); 366 printc("}"); 367 printc("\nint\n" uname "_APV(struct vop_vector *vop, struct " name "_args *a)"); --- 78 unchanged lines hidden --- | 360 361 # Print out function. 362 printc("\nint\n" uname "_AP(struct " name "_args *a)"); 363 printc("{"); 364 printc(""); 365 printc("\treturn(" uname "_APV(a->a_" args[0] "->v_op, a));"); 366 printc("}"); 367 printc("\nint\n" uname "_APV(struct vop_vector *vop, struct " name "_args *a)"); --- 78 unchanged lines hidden --- |