The ‘newinfo’ wizard

Download Report

Transcript The ‘newinfo’ wizard

The ‘newinfo’ wizard
For quickly obtaining kernel data,
here’s a tool to generate the boilerplate
for a ‘get_info()’ proc-file
Example: ‘memused.c’
• This module creates a pseudo-file that will
show an application-programs allocation of
virtual memory (expressed in killobytes)
In-class exercise
• Use the ‘newinfo’ program to generate the
skeleton for a module named ‘memuse.c’
• Then fill in the instructions needed to
iterate over the entire circular task-list
• Show the name of each task, and the size
of its virtual memory allocation (in KB)