Method and system for creation and use of embedded trace description
First Claim
Patent Images
1. A method of generating an embedded file comprising:
- embedding a plurality of probe calls into source code to obtain embedded source code;
compiling the embedded source code to generate object code comprising a first probe relocation for each of the plurality of probe calls;
post processing the object code to obtain a plurality of modified object code, wherein the plurality of modified object code comprises object code comprising a no-operation instruction in place of the probe relocation and object code comprising a probe encoding, and wherein post processing the object code comprises;
identifying one of the plurality of probe calls associated with the probe relocation;
replacing the probe call with a no-operation instruction;
recording a location and name of the probe call into the probe encoding; and
invalidating the relocation; and
linking the plurality of modified object code to obtain the embedded file, wherein the embedded file comprises the probe encoding, and wherein the embedded file is an executable file.
3 Assignments
0 Petitions
Accused Products
Abstract
A method of generating an embedded file involving embedding a plurality of probe calls into source code to obtain embedded source code, compiling the embedded source code to generate object code including a probe relocation for each of the plurality of probe calls, post processing the object code to obtain a plurality of modified object code, wherein the plurality of modified object code includes object code containing a no-operation instruction in place of the probe relocation and object code containing probe encoding, and linking the plurality of modified object code to obtain an embedded file, wherein the embedded file includes probe encoding.
-
Citations
16 Claims
-
1. A method of generating an embedded file comprising:
-
embedding a plurality of probe calls into source code to obtain embedded source code; compiling the embedded source code to generate object code comprising a first probe relocation for each of the plurality of probe calls; post processing the object code to obtain a plurality of modified object code, wherein the plurality of modified object code comprises object code comprising a no-operation instruction in place of the probe relocation and object code comprising a probe encoding, and wherein post processing the object code comprises; identifying one of the plurality of probe calls associated with the probe relocation; replacing the probe call with a no-operation instruction; recording a location and name of the probe call into the probe encoding; and invalidating the relocation; and linking the plurality of modified object code to obtain the embedded file, wherein the embedded file comprises the probe encoding, and wherein the embedded file is an executable file. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system for executing an embedded file comprising:
a processor executing; a compiler configured to accept embedded source code and generate object code comprising; a probe relocation for each of the plurality of probe calls; a post-processor configured to obtain a plurality of modified object code, wherein the plurality of modified object code comprises object code containing no-operation instructions and object code containing probe encoding, wherein obtaining a plurality of modified object code comprises;
identify one of the plurality of probe calls associated with the relocation;
replace the probe call with a no-operation instruction;
record a location and name of the probe call into a probe encoding; and
invalidate the relocation;a linker configured to link the plurality of modified object code to obtain an embedded file, wherein the embedded file comprises the probe encoding, and wherein the embedded file is an executable file; and a tracing framework configured to accept probe encoding of the embedded file and trace the plurality of probe calls based on information in probe encoding. - View Dependent Claims (10, 11, 12, 13, 14)
-
15. A computer system for configuring a link aggregation module, comprising:
-
a processor; a memory; a storage device; and software instructions stored in the memory for enabling the computer system under control of the processor to; embed a plurality of probe calls into source code to obtain embedded source code; compile the embedded source code to generate object code comprising a probe relocation for each of the plurality of probe calls; post process the object code to obtain a plurality of modified object code, wherein the plurality of modified object code comprises object code containing no-operation instructions in place of the relocations and object code containing probe encoding, and wherein post processing the object code comprises; identifying one of the plurality of probe calls associated with the probe relocation; replacing the probe call with a no-operation instruction; recording a location and name of the probe call into a probe encoding; and invalidating the relocation; and link the plurality of modified object code to obtain an embedded file, wherein the embedded file comprises the probe encoding, wherein the embedded file is an executable file, and wherein the embedded file is loaded into a process address space and inserting the probe encoding into a tracing framework using an initialization routine of the embedded file.
-
-
16. A computer readable medium comprising software instructions, wherein the software instructions comprise functionality to:
-
embed a plurality of probe calls into source code to obtain embedded source code; compile the embedded source code to generate object code comprising a probe relocation for each of the plurality of probe calls; post process the object code to obtain a plurality of modified object code, wherein the plurality of modified object code comprises object code containing no-operation instructions in place of the relocations and object code containing probe encoding, and wherein post processing the object code comprises; identifying one of the plurality of probe calls associated with the probe relocation; replacing the probe call with a no-operation instruction; recording a location and name of the probe call into a probe encoding; and invalidating the relocation; and link the plurality of modified object code to obtain an embedded file, wherein the embedded file comprises the probe encoding, wherein the embedded file comprises an executable file, and wherein the embedded file is loaded into a process address space and inserting the probe encoding into a tracing framework using an initialization routine of the embedded file.
-
Specification