Using trusted user space pages as kernel data pages
AssigneeInternational Business Machines Corporation
InventorsSaravanan Devendran, Avanish Kumar Ojha, Muthulaxmi Srinivasan
Life of this patent
Estimating the term…
Abstract
A computer implemented method, apparatus, and computer program product for using trusted user space pages. A kernel accesses a set of trusted pages in user space. The set of trusted user space pages are read-only pages in user mode. Each trusted user space page in the set of trusted user space pages is set to be a readable and writeable page by the kernel. Data captured by the kernel is saved directly to a trusted user space page in the set of trusted user space pages.
Claims20
A computer implemented method for per-thread profiling, the computer implemented method comprising:
- allocating a guard page in a user space to a given thread in a multi-thread process, wherein the guard page is a read-only page in a user mode;
- setting the guard page in the user mode to be a readable and writeable page by a kernel;
- saving profiling data for the given thread to the guard page, wherein the guard page is used by the kernel to write data directly to a user space and read data directly from the user space;
- and
- writing the profiling data in the guard page for the given thread to an output file when the given thread exits.
A computer implemented method for using trusted user space pages, the computer implemented method comprising:
- accessing a set of trusted user space pages in a user space by a kernel, wherein a trusted user space page is a read-only page in a user mode;
- setting each trusted user space page in the set of trusted user space pages to be a readable and writeable page by the kernel;
- and
- saving data captured by the kernel directly to a trusted user space page in the set of trusted user space pages.
A computer program product comprising:
- a computer usable medium including computer usable program code for using trusted user space pages as kernel space pages, said computer program product comprising:
- computer usable program code for accessing a set of trusted user space pages in a user space by a kernel, wherein a trusted user space page is a read-only page in a user mode;
- computer usable program code for setting each trusted user space page in the set of trusted user space pages to be a readable and writeable page by the kernel;
- and
- computer usable program code for saving data captured by the kernel directly to a trusted user space page in the set of trusted user space pages.
A system for using trusted user space pages as kernel space pages, the system comprising:
- a kernel, wherein the kernel accesses a set of trusted user space pages in a user space, and wherein a trusted user space page is a read-only page in a user mode;
- a controller, wherein the controller sets each trusted user space page in the set of trusted user space pages to be readable and writeable by the kernel;
- and wherein the controller saves data captured by the kernel directly to a trusted user space page in the set of trusted user space pages.
Dependencies are inferred from the claim text.