×

Methods and systems of function-specific tracing

  • US 9,658,941 B2
  • Filed: 01/28/2013
  • Issued: 05/23/2017
  • Est. Priority Date: 01/28/2013
  • Status: Active Grant
First Claim
Patent Images

1. A method of function-specific tracing in a distributed application, the method comprising:

  • generating a trace profile identifying one or more functions of a target program of the distributed application, wherein the trace profile identifies one or more functions to trace using a binary-relative address for each function to be traced and depth of tracing for each function to be traced;

    patching, by a tracer process, the target program of the distributed application in accordance with the generated trace profile to trace the one or more functions to the identified depth for each of the one or more functions;

    loading, into a compute controller in a distributed computing system, the patched target program;

    executing, by the compute controller, the patched target program;

    identifying, by the compute controller, traced functions in the patched target program based on a binary-relative address, wherein the traced functions are identified at runtime;

    observing function calls for traced functions of the target program, wherein observing function calls for traced functions of the target program includes executing the patched target program by a first process of the compute controller, and wherein observing function calls for traced functions of the patched target program is performed by a second process;

    constructing a per-process call stack for each traced function;

    combining, by the compute controller, the per-process call stacks to generate a distributed call stack, wherein the distributed call stack is utilized to show call flows among several functions within and between processes, permitting tracing of calls from receiving of requests to the distributed application; and

    fixing, by the compute controller, a call stack after execution of the traced functions.

View all claims
  • 5 Assignments
Timeline View
Assignment View
    ×
    ×