<?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 pstat_getlwp() and struct lwp_status in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getlwp-and-struct-lwp-status/m-p/3812667#M780244</link>
    <description>The pstat_getlwp() function populates&lt;BR /&gt;the lwp_status stuct but the lwp_utime&lt;BR /&gt;and wp_stime members contain the user&lt;BR /&gt;and system time in seconds according&lt;BR /&gt;to the .H include files.&lt;BR /&gt;&lt;BR /&gt;Does anyone to know how to obtain thread/lwp&lt;BR /&gt;clock time in sub-second resolution.&lt;BR /&gt;&lt;BR /&gt;Nanoseconds or microseconds would be best.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chuck&lt;BR /&gt;</description>
    <pubDate>Mon, 26 Jun 2006 13:50:48 GMT</pubDate>
    <dc:creator>Chuck Fricano</dc:creator>
    <dc:date>2006-06-26T13:50:48Z</dc:date>
    <item>
      <title>pstat_getlwp() and struct lwp_status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getlwp-and-struct-lwp-status/m-p/3812667#M780244</link>
      <description>The pstat_getlwp() function populates&lt;BR /&gt;the lwp_status stuct but the lwp_utime&lt;BR /&gt;and wp_stime members contain the user&lt;BR /&gt;and system time in seconds according&lt;BR /&gt;to the .H include files.&lt;BR /&gt;&lt;BR /&gt;Does anyone to know how to obtain thread/lwp&lt;BR /&gt;clock time in sub-second resolution.&lt;BR /&gt;&lt;BR /&gt;Nanoseconds or microseconds would be best.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Chuck&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Jun 2006 13:50:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getlwp-and-struct-lwp-status/m-p/3812667#M780244</guid>
      <dc:creator>Chuck Fricano</dc:creator>
      <dc:date>2006-06-26T13:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: pstat_getlwp() and struct lwp_status</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getlwp-and-struct-lwp-status/m-p/3812668#M780245</link>
      <description>I cannot say if it is "supported" or not for end-user use, but if you go into:&lt;BR /&gt;&lt;BR /&gt;/usr/include/sys/pstat/lwp_pstat_body.h&lt;BR /&gt;&lt;BR /&gt;and find lwp_utime  you will see (on 11.11 and I presume later at least)&lt;BR /&gt;&lt;BR /&gt; struct lwpcycles&lt;BR /&gt;          lwp_usercycles;       /* 64-bit user mode execution cycle count */&lt;BR /&gt; struct lwpcycles&lt;BR /&gt;          lwp_systemcycles;     /* 64-bit system mode execution cycle count */&lt;BR /&gt; struct lwpcycles&lt;BR /&gt;          lwp_interruptcycles;  /* 64-bit interrupt for thread cycle count */&lt;BR /&gt;&lt;BR /&gt;It is left as an excercise to the reader to find the definition of "lwpcycles" :)  (I'd start with:&lt;BR /&gt;&lt;BR /&gt;find /usr/include -exec grep lwpcycles {} \;&lt;BR /&gt;&lt;BR /&gt;myself.  And, if those cycles are anything like the system-wide cycles netperf looks at for CPU util, you could probably go into say the src/netcpu_pstatnew.c file of netperf sources:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.netperf.org/svn/netperf2/trunk" target="_blank"&gt;http://www.netperf.org/svn/netperf2/trunk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and find-out how to manipulate them.</description>
      <pubDate>Mon, 26 Jun 2006 19:36:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/pstat-getlwp-and-struct-lwp-status/m-p/3812668#M780245</guid>
      <dc:creator>rick jones</dc:creator>
      <dc:date>2006-06-26T19:36:02Z</dc:date>
    </item>
  </channel>
</rss>

