1*265Smws#!/bin/sh 2*265Smws# 3*265Smws# CDDL HEADER START 4*265Smws# 5*265Smws# The contents of this file are subject to the terms of the 6*265Smws# Common Development and Distribution License, Version 1.0 only 7*265Smws# (the "License"). You may not use this file except in compliance 8*265Smws# with the License. 9*265Smws# 10*265Smws# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 11*265Smws# or http://www.opensolaris.org/os/licensing. 12*265Smws# See the License for the specific language governing permissions 13*265Smws# and limitations under the License. 14*265Smws# 15*265Smws# When distributing Covered Code, include this CDDL HEADER in each 16*265Smws# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 17*265Smws# If applicable, add the following below this CDDL HEADER, with the 18*265Smws# fields enclosed by brackets "[]" replaced with your own identifying 19*265Smws# information: Portions Copyright [yyyy] [name of copyright owner] 20*265Smws# 21*265Smws# CDDL HEADER END 22*265Smws# 23*265Smws# 24*265Smws# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 25*265Smws# Use is subject to license terms. 26*265Smws# 27*265Smws#ident "%Z%%M% %I% %E% SMI" 28*265Smws 29*265Smwsecho "\ 30*265Smws/*\n\ 31*265Smws * Copyright 2005 Sun Microsystems, Inc. All rights reserved.\n\ 32*265Smws * Use is subject to license terms.\n\ 33*265Smws */\n\ 34*265Smws\n\ 35*265Smws#pragma ident\t\"%Z%%M%\t%I%\t%E% SMI\"\n\ 36*265Smws\n\ 37*265Smws#include <dtrace.h>\n\ 38*265Smws\n\ 39*265Smws/*ARGSUSED*/ 40*265Smwsconst char *\n\ 41*265Smwsdtrace_subrstr(dtrace_hdl_t *dtp, int subr)\n\ 42*265Smws{\n\ 43*265Smws switch (subr) {" 44*265Smws 45*265Smwsnawk ' 46*265Smws/^#define[ ]*DIF_SUBR_/ && $2 != "DIF_SUBR_MAX" { 47*265Smws printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10))); 48*265Smws}' 49*265Smws 50*265Smwsecho "\ 51*265Smws default: return (\"unknown\");\n\ 52*265Smws }\n\ 53*265Smws}" 54