Deleted Added
full compact
uwx_trace.h (115013) uwx_trace.h (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

--- 15 unchanged lines hidden (view full) ---

24#define UWX_TRACE_UINFO 2 /* UWX_TRACE=i: unwind info */
25#define UWX_TRACE_RSTATE 4 /* UWX_TRACE=r: reg state vector */
26#define UWX_TRACE_STEP 8 /* UWX_TRACE=s: step */
27#define UWX_TRACE_UTABLE 16 /* UWX_TRACE=t: unwind tbl search */
28#define UWX_TRACE_CONTEXT 32 /* UWX_TRACE=c: context */
29#define UWX_TRACE_COPYIN 64 /* UWX_TRACE=C: copyin callback */
30#define UWX_TRACE_LOOKUPIP 128 /* UWX_TRACE=L: lookupip callback */
31
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

--- 15 unchanged lines hidden (view full) ---

24#define UWX_TRACE_UINFO 2 /* UWX_TRACE=i: unwind info */
25#define UWX_TRACE_RSTATE 4 /* UWX_TRACE=r: reg state vector */
26#define UWX_TRACE_STEP 8 /* UWX_TRACE=s: step */
27#define UWX_TRACE_UTABLE 16 /* UWX_TRACE=t: unwind tbl search */
28#define UWX_TRACE_CONTEXT 32 /* UWX_TRACE=c: context */
29#define UWX_TRACE_COPYIN 64 /* UWX_TRACE=C: copyin callback */
30#define UWX_TRACE_LOOKUPIP 128 /* UWX_TRACE=L: lookupip callback */
31
32#ifdef DISABLE_TRACE
32#ifndef UWX_TRACE_ENABLE
33
34#define TRACE_INIT
35#define TRACE_B_REUSE(id)
36#define TRACE_B_ALLOC(id)
37#define TRACE_B_POP(id)
38#define TRACE_B_LABEL(label)
39#define TRACE_B_LABEL_COPY(id)
40#define TRACE_B_LABEL_REVERSE(back, new)

--- 30 unchanged lines hidden (view full) ---

71#define TRACE_T_BINSEARCH32(lb, ub, mid, code_start, code_end)
72#define TRACE_C_GET_REG(regid, bsp)
73#define TRACE_C_ROTATE_GR(regid, sor, rrb_gr, newregid)
74#define TRACE_SELF_COPYIN4(rem, len, wp)
75#define TRACE_SELF_COPYIN8(rem, len, dp)
76#define TRACE_SELF_LOOKUP(ip)
77#define TRACE_SELF_LOOKUP_DESC(text_base, unwind_base)
78
33
34#define TRACE_INIT
35#define TRACE_B_REUSE(id)
36#define TRACE_B_ALLOC(id)
37#define TRACE_B_POP(id)
38#define TRACE_B_LABEL(label)
39#define TRACE_B_LABEL_COPY(id)
40#define TRACE_B_LABEL_REVERSE(back, new)

--- 30 unchanged lines hidden (view full) ---

71#define TRACE_T_BINSEARCH32(lb, ub, mid, code_start, code_end)
72#define TRACE_C_GET_REG(regid, bsp)
73#define TRACE_C_ROTATE_GR(regid, sor, rrb_gr, newregid)
74#define TRACE_SELF_COPYIN4(rem, len, wp)
75#define TRACE_SELF_COPYIN8(rem, len, dp)
76#define TRACE_SELF_LOOKUP(ip)
77#define TRACE_SELF_LOOKUP_DESC(text_base, unwind_base)
78
79#else /* not TRACE_DISABLED */
79#else /* !UWX_TRACE_ENABLE */
80
81extern void uwx_trace_init(struct uwx_env *env);
82
83extern void uwx_dump_rstate(int regid, uint64_t rstate);
84
85struct uwx_rhdr;
86
87extern void uwx_dump_scoreboard(

--- 251 unchanged lines hidden (view full) ---

339 printf(" unwind start: %08x %08x\n", \
340 (unsigned int) (((text_base)+(unwind_base)[1]) >> 32), \
341 (unsigned int) ((text_base)+(unwind_base)[1])); \
342 printf(" unwind end: %08x %08x\n", \
343 (unsigned int) (((text_base)+(unwind_base)[2]) >> 32), \
344 (unsigned int) ((text_base)+(unwind_base)[2])); \
345 }
346
80
81extern void uwx_trace_init(struct uwx_env *env);
82
83extern void uwx_dump_rstate(int regid, uint64_t rstate);
84
85struct uwx_rhdr;
86
87extern void uwx_dump_scoreboard(

--- 251 unchanged lines hidden (view full) ---

339 printf(" unwind start: %08x %08x\n", \
340 (unsigned int) (((text_base)+(unwind_base)[1]) >> 32), \
341 (unsigned int) ((text_base)+(unwind_base)[1])); \
342 printf(" unwind end: %08x %08x\n", \
343 (unsigned int) (((text_base)+(unwind_base)[2]) >> 32), \
344 (unsigned int) ((text_base)+(unwind_base)[2])); \
345 }
346
347#endif /* TRACE_DISABLED */
347#endif /* !UWX_TRACE_ENABLE */
348
348