Patent ID: 9111034
Filing Date: 2015-08-18
Classification: G06F

Abstract:
1. A computer program product for system-level testing of a run-time instrumentation sampling process, the computer program product comprising: a non-transitory tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: generating a test instruction stream of a program that includes a plurality of executable instructions; setting controls for a runtime-instrumentation process, the runtime-instrumentation process configured to sample one or more instructions as the test instruction stream is executed and store records of events corresponding to the one or more sample instructions; simulating execution of the test instruction stream and sampling of the test instruction stream according to the controls, and storing simulated records associated with the sampling in a predicted collection buffer (PCB); accessing a program buffer of a processor, the program buffer storing records associated with sampling the test instruction stream according to the controls during execution of the test instruction stream by the processor; examining individual records in the program buffer to determine whether the individual records are valid and in proper sequence; and comparing the simulated records of the PCB and the records of the program buffer to validate the program buffer.