Handling oversized rings through recursive calls
First Claim
Patent Images
1. A computer program product in a computer readable medium containing a routine for writing a dump element, the routine comprising the steps of:
- first instructions for checking a size of a current dump element against a threshold,second instructions, if the size is greater than said threshold, forformatting a first portion of the dump element which is the size of the threshold,writing said first portion of the dump element,setting the remaining portion of the dump element to be a new dump element and returning to the checking step;
third instructions, if the size is less than or equal to said threshold, forformatting the dump element,writing said the dump element, andreturning to a calling routine.
2 Assignments
0 Petitions
Accused Products
Abstract
Certain elements in the scan dump performed at system failure have become so large that a header field which indicates the size of the element is itself too small. Rather than increase the size of the field, affecting numerous other programs, the elements are broken down into smaller pieces by the write routine, which can recursively call itself.
-
Citations
14 Claims
-
1. A computer program product in a computer readable medium containing a routine for writing a dump element, the routine comprising the steps of:
-
first instructions for checking a size of a current dump element against a threshold, second instructions, if the size is greater than said threshold, for formatting a first portion of the dump element which is the size of the threshold, writing said first portion of the dump element, setting the remaining portion of the dump element to be a new dump element and returning to the checking step; third instructions, if the size is less than or equal to said threshold, for formatting the dump element, writing said the dump element, and returning to a calling routine. - View Dependent Claims (2, 3, 4)
-
-
5. A method for writing a dump element, the method comprising the steps of:
-
receiving parameters for the dump element including a first starting address and a first size parameter; if said first size parameter is not greater than a given threshold, then formatting said element, writing said element, then returning to a calling routine, if said first size parameter is greater than or equal to said given threshold, then setting a second starting address equal to said first starting address plus said threshold, setting a second size parameter equal to said first size parameter minus said threshold, setting said first size parameter to said threshold, calling said method recursively, and after said calling step, setting said first size parameter to said second size parameter, setting said first starting address to said second starting address, and going to said receiving step. - View Dependent Claims (6, 7)
-
-
8. A computer system comprising:
-
a processor which is connected to receive input from at least a first device and to provide output through at least a second device, said processor being programmed to invoke, at the time of a system error, a routine which performs the following steps; receiving parameters for the dump element including a first starting address and a first size parameter; if said first size parameter is not greater than a given threshold, then formatting said element and a header describing said element, writing said element and said header, then returning to a calling routine, else, setting a second starting address equal to said first starting address plus said threshold, setting a second size parameter equal to said first size parameter minus said threshold, setting said first size parameter to said threshold, calling said routine recursively, and after said calling step, setting said first size parameter to said second size parameter, setting said first starting address to said second starting address, and going to said receiving step. - View Dependent Claims (9, 10, 11)
-
-
12. A computer system comprising:
-
means to receive information regarding a scan dump element to be written; means to check the size of the scan dump element; and means to write a given block of data which is of a given size or less; means to modify said information regarding the scan dump element; wherein if the size of said scan dump element is not greater than said given size, said means to write is configured to write said scan dump element to nonvolatile memory, otherwise said means to write is configured to write a first portion of said scan dump element which is of said given size to nonvolatile memory, said means to modify is configured to modify said information to indicate the remaining portion of said element as a new element and to performs said wherein step again. - View Dependent Claims (13, 14)
-
Specification