uwx_trace.c (115013) | uwx_trace.c (117392) |
---|---|
1/* 2 * Copyright (c) 2002,2003 Hewlett-Packard Company 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 11 unchanged lines hidden (view full) --- 20 * DEALINGS IN THE SOFTWARE. 21 */ 22 23#include "uwx_env.h" 24#include "uwx_uinfo.h" 25#include "uwx_scoreboard.h" 26#include "uwx_trace.h" 27 | 1/* 2 * Copyright (c) 2002,2003 Hewlett-Packard Company 3 * 4 * Permission is hereby granted, free of charge, to any person obtaining a 5 * copy of this software and associated documentation files (the "Software"), 6 * to deal in the Software without restriction, including without limitation 7 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8 * and/or sell copies of the Software, and to permit persons to whom the --- 11 unchanged lines hidden (view full) --- 20 * DEALINGS IN THE SOFTWARE. 21 */ 22 23#include "uwx_env.h" 24#include "uwx_uinfo.h" 25#include "uwx_scoreboard.h" 26#include "uwx_trace.h" 27 |
28#ifdef UWX_TRACE_ENABLE 29 |
|
28void uwx_trace_init(struct uwx_env *env) 29{ 30 char *tstr; 31 32 tstr = getenv("UWX_TRACE"); 33 if (tstr != NULL) { 34 while (*tstr != '\0') { 35 switch (*tstr) { --- 95 unchanged lines hidden (view full) --- 131 printf(" Body region (start = %d, length = %d, ecount = %d)\n", 132 cur_slot, (int)rhdr->rlen, rhdr->ecount); 133 if (ip_slot < rhdr->rlen) 134 printf(" IP is in this region (offset = %d)\n", ip_slot); 135 for (i = 0; i < nsbreg; i++) 136 uwx_dump_rstate(i, scoreboard->rstate[i]); 137} 138 | 30void uwx_trace_init(struct uwx_env *env) 31{ 32 char *tstr; 33 34 tstr = getenv("UWX_TRACE"); 35 if (tstr != NULL) { 36 while (*tstr != '\0') { 37 switch (*tstr) { --- 95 unchanged lines hidden (view full) --- 133 printf(" Body region (start = %d, length = %d, ecount = %d)\n", 134 cur_slot, (int)rhdr->rlen, rhdr->ecount); 135 if (ip_slot < rhdr->rlen) 136 printf(" IP is in this region (offset = %d)\n", ip_slot); 137 for (i = 0; i < nsbreg; i++) 138 uwx_dump_rstate(i, scoreboard->rstate[i]); 139} 140 |
141#endif /* UWX_TRACE_ENABLE */ |
|