Patent ID: 8875107

Claim:
A computer program product for component lock analysis, the computer program product comprising: a non-transitory computer-readable medium having computer usable program code embodied therewith, the computer usable program code comprising: computer program instructions for associating a component with all locks configured for use with the component, the component and the component-associated locks configured for use by an operating system, the component comprising a subsystem of the operating system; computer program instructions for initiating lock tracing for a particular lock instance in a particular component code listing, the component code listing invoking a software module, the invoked software module initiating lock tracing in response to a comparison of: (1) a component type parameter associated with the particular lock instance, and (2) a value indicating a component currently selected for lock tracing, wherein the component type parameter and the value indicating the component currently selected for lock tracing are retrieved by the invoked software module; and computer program instructions for instrumenting the particular lock instance with lock tracing program instructions by invoking a tracing module in response to initiating lock tracing, wherein the lock tracing program instructions comprise computer program instructions for obtaining lock statistics, the lock statistics consisting of lock statistics associated with the particular lock instance.