dt_dis.c (249573) | dt_dis.c (250812) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 5 unchanged lines hidden (view full) --- 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ | 1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * --- 5 unchanged lines hidden (view full) --- 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ |
22 |
|
22/* 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 | 23/* 24 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 25 * Use is subject to license terms. 26 */ 27 |
27#pragma ident "%Z%%M% %I% %E% SMI" | 28/* 29 * Copyright (c) 2012 by Delphix. All rights reserved. 30 */ |
28 29#include <strings.h> 30#include <stdio.h> 31 32#include <dt_impl.h> 33#include <dt_ident.h> 34 35/*ARGSUSED*/ --- 171 unchanged lines hidden (view full) --- 207 208/*ARGSUSED*/ 209static void 210dt_dis_pushts(const dtrace_difo_t *dp, 211 const char *name, dif_instr_t in, FILE *fp) 212{ 213 static const char *const tnames[] = { "D type", "string" }; 214 uint_t type = DIF_INSTR_TYPE(in); | 31 32#include <strings.h> 33#include <stdio.h> 34 35#include <dt_impl.h> 36#include <dt_ident.h> 37 38/*ARGSUSED*/ --- 171 unchanged lines hidden (view full) --- 210 211/*ARGSUSED*/ 212static void 213dt_dis_pushts(const dtrace_difo_t *dp, 214 const char *name, dif_instr_t in, FILE *fp) 215{ 216 static const char *const tnames[] = { "D type", "string" }; 217 uint_t type = DIF_INSTR_TYPE(in); |
218 const char *pad; |
|
215 | 219 |
216 (void) fprintf(fp, "%-4s DT_TYPE(%u), %%r%u, %%r%u", 217 name, type, DIF_INSTR_R2(in), DIF_INSTR_RS(in)); | 220 if (DIF_INSTR_OP(in) == DIF_OP_PUSHTV) { 221 (void) fprintf(fp, "%-4s DT_TYPE(%u), %%r%u", 222 name, type, DIF_INSTR_RS(in)); 223 pad = "\t\t"; 224 } else { 225 (void) fprintf(fp, "%-4s DT_TYPE(%u), %%r%u, %%r%u", 226 name, type, DIF_INSTR_R2(in), DIF_INSTR_RS(in)); 227 pad = "\t"; 228 } |
218 | 229 |
219 if (type < sizeof (tnames) / sizeof (tnames[0])) 220 (void) fprintf(fp, "\t! DT_TYPE(%u) = %s", type, tnames[type]); | 230 if (type < sizeof (tnames) / sizeof (tnames[0])) { 231 (void) fprintf(fp, "%s! DT_TYPE(%u) = %s", pad, 232 type, tnames[type]); 233 } |
221} 222 223static void 224dt_dis_xlate(const dtrace_difo_t *dp, 225 const char *name, dif_instr_t in, FILE *fp) 226{ 227 uint_t xlr = DIF_INSTR_XLREF(in); 228 --- 283 unchanged lines hidden --- | 234} 235 236static void 237dt_dis_xlate(const dtrace_difo_t *dp, 238 const char *name, dif_instr_t in, FILE *fp) 239{ 240 uint_t xlr = DIF_INSTR_XLREF(in); 241 --- 283 unchanged lines hidden --- |