Patent ID: 8261243
Filing Date: 2012-09-04
Classification: G06F

Abstract:
1. A computer implemented method for tracing information about current context and system state for either 32-bit or 64-bit applications, the computer implemented method comprising: compiling, by a processor, a 32-bit trace executable code for a trace script and a 64-bit trace executable code for the trace script; determining, by the processor, whether an application process is a 32-bit process or a 64-bit process; responsive to determining that the application process is the 32-bit process, indicating, by the processor, that the application process is the 32-bit process with an internal indicator, wherein the indicating comprises setting or clearing an internal indicator to indicate that the process is the 32-bit process, wherein the internal indicator comprises a corresponding bit in a saved condition register; responsive to determining that the application process is the 64-bit process, indicating, by the processor, that the application process is the 64-bit process with the internal indicator, wherein the indicating comprises setting or clearing the internal indicator to indicate that the process is the 64-bit process, wherein the internal indicator comprises the corresponding bit in the saved condition register; identifying, by the processor, the internal indicator as either indicating the 32-bit process or the 64-bit process; responsive to identifying the internal indicator as indicating the 32-bit process, setting, by the processor, an instruction pointer to indicate the 32-bit trace executable code of the trace script; responsive to setting an instruction pointer to indicate the 32-bit trace executable code, executing, by the processor, the 32-bit trace executable code of the trace script; responsive to identifying the internal indicator as indicating the 64-bit process, setting, by the processor, an instruction pointer to indicate the 64-bit trace code of the trace script; and responsive to setting an instruction pointer to indicate the 64-bit trace executable code, executing, by the processor, the 64-bit trace executable code of the trace script.