Component lock tracing by associating component type parameters with particular lock instances
AssigneeInternational Business Machines Corporation
InventorsJuan M Casas, Saurabh Nath Sharma, Basu Vaidyanathan
Life of this patent
Estimating the term…
Abstract
Methods for lock tracing at a component level. The method includes associating one or more locks with a component of the operating system; initiating lock tracing for the component; and instrumenting the component-associated locks with lock tracing program instructions in response to initiating lock tracing. The locks are selected from a group of locks configured for use by an operating system and individually comprise locking code. The component lock tracing may be static or dynamic.
Claims7
A method for component lock analysis, comprising integrating non-transitory computer readable storage medium embodying a computer readable program into a computing system, wherein the program in combination with the computing system performs the following:
- associating, by operation of one or more computer processors, 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, the locks individually comprising locking code;
- initiating lock tracing for the component 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
- in response to initiating lock tracing, instrumenting the particular lock instance with lock tracing program instructions by invoking a tracing module to obtain lock statistics, the lock statistics consisting of lock statistics associated with the particular lock instance.
Dependencies are inferred from the claim text.