16ff6d951SJohn Birrell#!/bin/sh 26ff6d951SJohn Birrell# 36ff6d951SJohn Birrell# CDDL HEADER START 46ff6d951SJohn Birrell# 56ff6d951SJohn Birrell# The contents of this file are subject to the terms of the 66ff6d951SJohn Birrell# Common Development and Distribution License, Version 1.0 only 76ff6d951SJohn Birrell# (the "License"). You may not use this file except in compliance 86ff6d951SJohn Birrell# with the License. 96ff6d951SJohn Birrell# 106ff6d951SJohn Birrell# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 116ff6d951SJohn Birrell# or http://www.opensolaris.org/os/licensing. 126ff6d951SJohn Birrell# See the License for the specific language governing permissions 136ff6d951SJohn Birrell# and limitations under the License. 146ff6d951SJohn Birrell# 156ff6d951SJohn Birrell# When distributing Covered Code, include this CDDL HEADER in each 166ff6d951SJohn Birrell# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 176ff6d951SJohn Birrell# If applicable, add the following below this CDDL HEADER, with the 186ff6d951SJohn Birrell# fields enclosed by brackets "[]" replaced with your own identifying 196ff6d951SJohn Birrell# information: Portions Copyright [yyyy] [name of copyright owner] 206ff6d951SJohn Birrell# 216ff6d951SJohn Birrell# CDDL HEADER END 226ff6d951SJohn Birrell# 236ff6d951SJohn Birrell# 246ff6d951SJohn Birrell# Copyright 2005 Sun Microsystems, Inc. All rights reserved. 256ff6d951SJohn Birrell# Use is subject to license terms. 266ff6d951SJohn Birrell# 27f57b27e3SAlex Richardsonset -e 286ff6d951SJohn Birrell 29*fded9874SAlex Richardsonprintf "%s" " 30*fded9874SAlex Richardson/* 31*fded9874SAlex Richardson * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 32*fded9874SAlex Richardson * Use is subject to license terms. 33*fded9874SAlex Richardson */ 34abb532f6SJohn Birrell 35*fded9874SAlex Richardson#include <dtrace.h> 36*fded9874SAlex Richardson 376ff6d951SJohn Birrell/*ARGSUSED*/ 38*fded9874SAlex Richardsonconst char * 39*fded9874SAlex Richardsondtrace_subrstr(dtrace_hdl_t *dtp, int subr) 40*fded9874SAlex Richardson{ 41*fded9874SAlex Richardson switch (subr) { 42*fded9874SAlex Richardson" 436ff6d951SJohn Birrell 446ff6d951SJohn Birrellnawk ' 456ff6d951SJohn Birrell/^#define[ ]*DIF_SUBR_/ && $2 != "DIF_SUBR_MAX" { 466ff6d951SJohn Birrell printf("\tcase %s: return (\"%s\");\n", $2, tolower(substr($2, 10))); 476ff6d951SJohn Birrell}' 486ff6d951SJohn Birrell 49*fded9874SAlex Richardsonprintf "%s" " 50*fded9874SAlex Richardson default: return (\"unknown\"); 51*fded9874SAlex Richardson } 52*fded9874SAlex Richardson} 53*fded9874SAlex Richardson" 54