<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: docs on proc table in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647222#M20092</link>
    <description>You might want to check out Linux kernel source code, linux-2.6.13.2/fs/proc/array.c, function do_task_stat().&lt;BR /&gt;&lt;BR /&gt;The list of fields (in a huge sprintf() call) is defined as:&lt;BR /&gt;&lt;BR /&gt;task-&amp;gt;pid,&lt;BR /&gt;tcomm,&lt;BR /&gt;state,&lt;BR /&gt;ppid,&lt;BR /&gt;pgid,&lt;BR /&gt;sid,&lt;BR /&gt;tty_nr,&lt;BR /&gt;tty_pgrp,&lt;BR /&gt;task-&amp;gt;flags,&lt;BR /&gt;min_flt,&lt;BR /&gt;cmin_flt,&lt;BR /&gt;maj_flt,&lt;BR /&gt;cmaj_flt,&lt;BR /&gt;cputime_to_clock_t(utime),&lt;BR /&gt;cputime_to_clock_t(stime),&lt;BR /&gt;cputime_to_clock_t(cutime),&lt;BR /&gt;cputime_to_clock_t(cstime),&lt;BR /&gt;priority,&lt;BR /&gt;nice,&lt;BR /&gt;num_threads,&lt;BR /&gt;jiffies_to_clock_t(it_real_value),&lt;BR /&gt;start_time,&lt;BR /&gt;vsize,&lt;BR /&gt;mm ? get_mm_counter(mm, rss) : 0, /* you might want to shift this left 3 */&lt;BR /&gt;rsslim,&lt;BR /&gt;mm ? mm-&amp;gt;start_code : 0,&lt;BR /&gt;mm ? mm-&amp;gt;end_code : 0,&lt;BR /&gt;mm ? mm-&amp;gt;start_stack : 0,&lt;BR /&gt;esp,&lt;BR /&gt;eip,&lt;BR /&gt;/* The signal information here is obsolete.&lt;BR /&gt; * It must be decimal for Linux 2.0 compatibility.&lt;BR /&gt; * Use /proc/#/status for real-time signals.&lt;BR /&gt; */&lt;BR /&gt;task-&amp;gt;pending.signal.sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;task-&amp;gt;blocked.sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;sigign      .sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;sigcatch    .sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;wchan,&lt;BR /&gt;0UL,&lt;BR /&gt;0UL,&lt;BR /&gt;task-&amp;gt;exit_signal,&lt;BR /&gt;task_cpu(task),&lt;BR /&gt;task-&amp;gt;rt_priority,&lt;BR /&gt;task-&amp;gt;policy);&lt;BR /&gt;&lt;BR /&gt;If you're making your own program to decipher /proc entries, you should definitely check out libproc (a part of the procps package, source code at &lt;A href="http://rlove.org/procps/)." target="_blank"&gt;http://rlove.org/procps/).&lt;/A&gt; If there is something you can use, you might achieve compatibility across major kernel versions with just keeping libproc up to date, if I'm not mistaken.&lt;BR /&gt;</description>
    <pubDate>Wed, 12 Oct 2005 03:38:50 GMT</pubDate>
    <dc:creator>Matti_Kurkela</dc:creator>
    <dc:date>2005-10-12T03:38:50Z</dc:date>
    <item>
      <title>docs on proc table</title>
      <link>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647220#M20090</link>
      <description>all,&lt;BR /&gt;here's a snippet of /proc/&lt;PID&gt;/stat:&lt;BR /&gt;945 (ndiswrapwq) S 5 0 0 0 -1 41024 0 0 0 0 0 394 0 0 10 -5 1 0 1184 0 0 4294967295 0 0 0 0 0 0 2147483647 65536 0 3222508453 0 0 17 0 0 0&lt;BR /&gt;&lt;BR /&gt;Could some shed some light on what each col means (map to). I could make out some of it but not all.  fist col is pid, second is command, 3rd col is status of process. The rest I am not sure. I am interested in time process start, how much cpu rutime, etc...&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/PID&gt;</description>
      <pubDate>Tue, 11 Oct 2005 22:02:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647220#M20090</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2005-10-11T22:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: docs on proc table</title>
      <link>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647221#M20091</link>
      <description>&lt;BR /&gt;check 'man 5 proc', it has detailed information on stat and other files in /proc/&lt;PID&gt; folder&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Gopi&lt;/PID&gt;</description>
      <pubDate>Wed, 12 Oct 2005 03:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647221#M20091</guid>
      <dc:creator>Gopi Sekar</dc:creator>
      <dc:date>2005-10-12T03:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: docs on proc table</title>
      <link>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647222#M20092</link>
      <description>You might want to check out Linux kernel source code, linux-2.6.13.2/fs/proc/array.c, function do_task_stat().&lt;BR /&gt;&lt;BR /&gt;The list of fields (in a huge sprintf() call) is defined as:&lt;BR /&gt;&lt;BR /&gt;task-&amp;gt;pid,&lt;BR /&gt;tcomm,&lt;BR /&gt;state,&lt;BR /&gt;ppid,&lt;BR /&gt;pgid,&lt;BR /&gt;sid,&lt;BR /&gt;tty_nr,&lt;BR /&gt;tty_pgrp,&lt;BR /&gt;task-&amp;gt;flags,&lt;BR /&gt;min_flt,&lt;BR /&gt;cmin_flt,&lt;BR /&gt;maj_flt,&lt;BR /&gt;cmaj_flt,&lt;BR /&gt;cputime_to_clock_t(utime),&lt;BR /&gt;cputime_to_clock_t(stime),&lt;BR /&gt;cputime_to_clock_t(cutime),&lt;BR /&gt;cputime_to_clock_t(cstime),&lt;BR /&gt;priority,&lt;BR /&gt;nice,&lt;BR /&gt;num_threads,&lt;BR /&gt;jiffies_to_clock_t(it_real_value),&lt;BR /&gt;start_time,&lt;BR /&gt;vsize,&lt;BR /&gt;mm ? get_mm_counter(mm, rss) : 0, /* you might want to shift this left 3 */&lt;BR /&gt;rsslim,&lt;BR /&gt;mm ? mm-&amp;gt;start_code : 0,&lt;BR /&gt;mm ? mm-&amp;gt;end_code : 0,&lt;BR /&gt;mm ? mm-&amp;gt;start_stack : 0,&lt;BR /&gt;esp,&lt;BR /&gt;eip,&lt;BR /&gt;/* The signal information here is obsolete.&lt;BR /&gt; * It must be decimal for Linux 2.0 compatibility.&lt;BR /&gt; * Use /proc/#/status for real-time signals.&lt;BR /&gt; */&lt;BR /&gt;task-&amp;gt;pending.signal.sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;task-&amp;gt;blocked.sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;sigign      .sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;sigcatch    .sig[0] &amp;amp; 0x7fffffffUL,&lt;BR /&gt;wchan,&lt;BR /&gt;0UL,&lt;BR /&gt;0UL,&lt;BR /&gt;task-&amp;gt;exit_signal,&lt;BR /&gt;task_cpu(task),&lt;BR /&gt;task-&amp;gt;rt_priority,&lt;BR /&gt;task-&amp;gt;policy);&lt;BR /&gt;&lt;BR /&gt;If you're making your own program to decipher /proc entries, you should definitely check out libproc (a part of the procps package, source code at &lt;A href="http://rlove.org/procps/)." target="_blank"&gt;http://rlove.org/procps/).&lt;/A&gt; If there is something you can use, you might achieve compatibility across major kernel versions with just keeping libproc up to date, if I'm not mistaken.&lt;BR /&gt;</description>
      <pubDate>Wed, 12 Oct 2005 03:38:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647222#M20092</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2005-10-12T03:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: docs on proc table</title>
      <link>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647223#M20093</link>
      <description>k, i got that infor. But not what is jiffie; according to the man page it is 1/100th of a second. Should I divide the stime by 1/100th of  a second to get the result in second?  Thanks.</description>
      <pubDate>Wed, 12 Oct 2005 07:38:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/docs-on-proc-table/m-p/3647223#M20093</guid>
      <dc:creator>K.C. Chan</dc:creator>
      <dc:date>2005-10-12T07:38:37Z</dc:date>
    </item>
  </channel>
</rss>

