10 Sample Applications
Linux Software Developers Kit (SDK) User Guide
61
Figure 10-9. CP Manager Interface Overview
LED
The led program is a simple LED demo intended to demonstrate the use of the CP API library.
Run led from the shell with no arguments to observe the LED demo.
Check the Process Stack
The check the process stack (chkstk) is a tool which enables you to see the using stack size of
working process like following:
/ # chkstk
PID STACK SIZE USED MARGIN CODESZ DATASZ
1 404c8180 16000 1708 14292 272000 53248 (init)
35 40548180 16000 1829 14171 272000 53248 (/sbin/syslogd)
37 40558180 16000 5004 10996 272000 65536 (-/bin/sh)
53 40598180 16000 2297 13703 272000 53248 (/sbin/inetd)
67 40606000 8192 1865 6327 113792 36864 (boa)
79 4052f000 4096 1656 2440 30240 12288 (chkstk)