167754Smsmith#!/bin/sh 267754Smsmith# 367754Smsmith# CDDL HEADER START 471867Smsmith# 567754Smsmith# The contents of this file are subject to the terms of the 667754Smsmith# Common Development and Distribution License, Version 1.0 only 767754Smsmith# (the "License"). You may not use this file except in compliance 867754Smsmith# with the License. 967754Smsmith# 1067754Smsmith# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1167754Smsmith# or http://www.opensolaris.org/os/licensing. 1271867Smsmith# See the License for the specific language governing permissions 1370243Smsmith# and limitations under the License. 1467754Smsmith# 1567754Smsmith# When distributing Covered Code, include this CDDL HEADER in each 1667754Smsmith# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1767754Smsmith# If applicable, add the following below this CDDL HEADER, with the 1867754Smsmith# fields enclosed by brackets "[]" replaced with your own identifying 1967754Smsmith# information: Portions Copyright [yyyy] [name of copyright owner] 2067754Smsmith# 2167754Smsmith# CDDL HEADER END 2267754Smsmith# 2367754Smsmith# 2467754Smsmith# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 2567754Smsmith# Use is subject to license terms. 2667754Smsmith# 2767754Smsmith#ident "%Z%%M% %I% %E% SMI" 2867754Smsmith 2967754SmsmithBSDECHO=-e 3067754Smsmith 3167754Smsmithecho ${BSDECHO} "\ 3267754Smsmith/*\n\ 3367754Smsmith * Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\ 3467754Smsmith * Use is subject to license terms.\n\ 3567754Smsmith */\n\ 3667754Smsmith\n\ 3767754Smsmith#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n\ 3867754Smsmith\n\ 3967754Smsmith#include <dtrace.h>\n\ 4067754Smsmith\n\ 4167754Smsmith/*ARGSUSED*/ 4267754Smsmithconst char *\n\ 4367754Smsmithdtrace_subrstr(dtrace_hdl_t *dtp, int subr)\n\ 4467754Smsmith{\n\ 4567754Smsmith switch (subr) {" 4667754Smsmith 4767754Smsmithnawk ' 4867754Smsmith/^#define[ ]*DIF_SUBR_/ && $2 != "DIF_SUBR_MAX" { 4967754Smsmith printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10))); 5067754Smsmith}' 5167754Smsmith 5267754Smsmithecho ${BSDECHO} "\ 5367754Smsmith default: return (\"unknown\");\n\ 5467754Smsmith }\n\ 5567754Smsmith}" 5667754Smsmith