<?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 C expert needed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668283#M50205</link>
    <description />
    <pubDate>Wed, 20 Feb 2002 15:34:34 GMT</pubDate>
    <dc:creator>Stefan Farrelly</dc:creator>
    <dc:date>2002-02-20T15:34:34Z</dc:date>
    <item>
      <title>C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668283#M50205</link>
      <description />
      <pubDate>Wed, 20 Feb 2002 15:34:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668283#M50205</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T15:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668284#M50206</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;first i wanted to say that i m not an c expert &lt;BR /&gt;and i tried to compile the c program and i m getting all the time /usr/ccs/bin/ld: aa: Not a valid object file (invalid system id) . &lt;BR /&gt;&lt;BR /&gt;but i wanted to tell you that i saw the same error with the command ipcs .&lt;BR /&gt;&lt;BR /&gt;and over there the error was that a file was missing from the /stand . &lt;BR /&gt;&lt;BR /&gt;RESOLUTION&lt;BR /&gt;A file in /stand is probably missing, most likely vmunix. Check&lt;BR /&gt;/stand to make sure everything that should be there is present.&lt;BR /&gt;&lt;BR /&gt;Also verify permissions on the /stand directory and the files in it.&lt;BR /&gt;&lt;BR /&gt;At least these files should be in /stand:&lt;BR /&gt;&lt;BR /&gt;-rw-r--r--   1 root       sys             19  Jul  9  1999 bootconf&lt;BR /&gt;drwxr-xr-x   2 root       root          1024  Jan 16  2001 build&lt;BR /&gt;-rw-r--r--   1 root       root          1568  Aug 23  2000 ioconfig&lt;BR /&gt;-r--r--r--   1 root       sys             82  May 19  1999 kernrel&lt;BR /&gt;drwxr-xr-x   2 root       root          8192  May 19  1999 lost+found&lt;BR /&gt;-rw-------   1 root       root            12  Nov 19 11:17 rootconf&lt;BR /&gt;-rw-rw-r--   1 root       sys            543  Jan 16  2001 system&lt;BR /&gt;-rwxr-xr-x   1 root       sys       10065744  Jan 16  2001 vmunix&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;i will also check the primission .&lt;BR /&gt;&lt;BR /&gt;now i will try to find a c expert that will help me with the c program</description>
      <pubDate>Wed, 20 Feb 2002 15:50:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668284#M50206</guid>
      <dc:creator>eran maor</dc:creator>
      <dc:date>2002-02-20T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668285#M50207</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Do you have :-&lt;BR /&gt;&lt;BR /&gt;/usr/include/nlist.h&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Paula</description>
      <pubDate>Wed, 20 Feb 2002 15:52:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668285#M50207</guid>
      <dc:creator>Paula J Frazer-Campbell</dc:creator>
      <dc:date>2002-02-20T15:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668286#M50208</link>
      <description>&lt;BR /&gt;Thanks for the reply Eran but /stand/vmunix is definitely there and the permissions are fine. Im running it as root so no permission problems and the box is recently rebuilt nice and clean and all my other nifty scripts and C programs run aok.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 15:53:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668286#M50208</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T15:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668287#M50209</link>
      <description>Hi Paula,&lt;BR /&gt;&lt;BR /&gt;thanks, yes its there. All include files are there or it wouldnt compile. It compiles clean with.</description>
      <pubDate>Wed, 20 Feb 2002 15:54:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668287#M50209</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T15:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668288#M50210</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;Not sure whether this helps or not, but this says to check the existence of files in /stand directory and the permissions:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://us-support3.external.hp.com/cki/bin/doc.pl/sid=841cb8280d787ca834/screen=ckiDisplayDocument?docId=200000058669640" target="_blank"&gt;http://us-support3.external.hp.com/cki/bin/doc.pl/sid=841cb8280d787ca834/screen=ckiDisplayDocument?docId=200000058669640&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Shiju&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 15:56:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668288#M50210</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2002-02-20T15:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668289#M50211</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;Can you check the source, I'm getting an error on line 77, the printf on line 76 is not complete:&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;printf("HW page size is %d bytes\n", &lt;BR /&gt;printf("TLB is %s\n",unified_tlb?"unified":"separate"); &lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;unless my session's not working correctly?&lt;BR /&gt;&lt;BR /&gt;Thx, Robin.</description>
      <pubDate>Wed, 20 Feb 2002 16:05:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668289#M50211</guid>
      <dc:creator>Robin Wakefield</dc:creator>
      <dc:date>2002-02-20T16:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668290#M50212</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;kernel="/stand/vmunix"; &lt;BR /&gt;if (nlist(kernel, namelist) &amp;lt; 0) &lt;BR /&gt;{ &lt;BR /&gt;kernel = "/hp-ux"; &lt;BR /&gt;if (nlist(kernel, namelist) &amp;lt; 0) &lt;BR /&gt;cleanup("nlist"); &lt;BR /&gt;} &lt;BR /&gt;&lt;BR /&gt;The error message comes from the "cleanup" routine. Which is called after both(!) calls of nlist failed!&lt;BR /&gt;Since the basic routine causing the error is "nlist", I checked out "man nlist".&lt;BR /&gt;&lt;BR /&gt;It is a systemcall, receiving an array with the names you like to extract, but&lt;BR /&gt;&lt;BR /&gt; Once the nlist function has been called, the variable names are augmented with symbol information.&lt;BR /&gt;&lt;BR /&gt;requires the object file to have symbol information. This is rarely the case for a compiled kernel. "nlist" has no qualification why it fails, so there ar only few reasons:&lt;BR /&gt;- file does not exist or is not accessible (easy to check)&lt;BR /&gt;- file is no object file (unlikely, because your system is runnning)&lt;BR /&gt;- file does not contain a symbol table&lt;BR /&gt;&lt;BR /&gt;I think this program requires the kernel to be compiled with debug option to provide the symbol table. Now I just surfed SAM a bit, but found no options how to turn on kernel debugging or compile a kernel with symbol tables.&lt;BR /&gt;&lt;BR /&gt;Do not know if this really helps....&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 20 Feb 2002 16:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668290#M50212</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-20T16:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668291#M50213</link>
      <description>OK,&lt;BR /&gt;&lt;BR /&gt;found something else:&lt;BR /&gt;&lt;BR /&gt;/stand/build/config.mk&lt;BR /&gt;&lt;BR /&gt;contains the makefile for the kernel.&lt;BR /&gt;&lt;BR /&gt;Browse for DOSDEBUG and read through the comment section in this area. May be the originator of this Program is able to give you more info how to build your kernel for this.&lt;BR /&gt;&lt;BR /&gt;# Debug kernels (-DOSDEBUG) produce symbolic stack traces as a debugging&lt;BR /&gt;# aid.  Non-debug kernels produce purely numeric stack traces.  They're&lt;BR /&gt;# not as convenient, but the memory overhead (~300KB) of storing the&lt;BR /&gt;# names of every kernel function is too high for the production kernel.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 20 Feb 2002 16:56:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668291#M50213</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-20T16:56:19Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668292#M50214</link>
      <description>Hi Robin,&lt;BR /&gt;&lt;BR /&gt;Its taken me an hour to login to the itrc again!"$%%^&amp;amp;*. Talk about annoying. Heres a tail of the cache.c program so you can see the last few lines;&lt;BR /&gt;&lt;BR /&gt;    printf("\nOne cache line is %d bytes\n",&lt;BR /&gt;           cache_tlb_parms.ic_conf.blocksize*16);&lt;BR /&gt;    printf("Cache lines per chunk: %d\n",&lt;BR /&gt;           cache_tlb_parms.ic_conf.lines_per_chunk );&lt;BR /&gt;    printf("HW page size is %d bytes\n",&lt;BR /&gt;           cache_tlb_parms.it_conf.page_size?4096:2048);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Tried attaching the file as a txt file also - been trying for half an hour - keeps hanging!"$%^&amp;amp;*@#&lt;BR /&gt;&lt;BR /&gt;Volker - thanks for the info. Will look into it.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Stefan&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 17:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668292#M50214</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T17:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668293#M50215</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;I just added completed line 76 like this&lt;BR /&gt;   &lt;BR /&gt;76  printf("HW page size is %d bytes\n", 0);&lt;BR /&gt;&lt;BR /&gt;and habe been able to compile and run the program without problem on 11.00 32-bit.&lt;BR /&gt;&lt;BR /&gt;So my symbol theory is wrong :-(&lt;BR /&gt;&lt;BR /&gt;May be you are running a 64-Bit version ?&lt;BR /&gt;&lt;BR /&gt;Which may require the use of the "nlist64"-systemcall according to the mentioned man-page.&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;&lt;BR /&gt;PS: Would be nice to complete line 76 with the correct value to get the HW page size reported.</description>
      <pubDate>Wed, 20 Feb 2002 17:23:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668293#M50215</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-20T17:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668294#M50216</link>
      <description>Hi Volker,&lt;BR /&gt;&lt;BR /&gt;I get the same error wether on 10.20, 11/32 or 11/64. But I see youre point about nlist64, I will change this for an 11/64bit system and retry.&lt;BR /&gt;&lt;BR /&gt;So you got it to run aok ? what was the output ??&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Stefan</description>
      <pubDate>Wed, 20 Feb 2002 17:35:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668294#M50216</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T17:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668295#M50217</link>
      <description>I still cant attach the file - it just hangs. Will try again to cut and paste in a bigger chunk.....&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/**************************************************************************&lt;BR /&gt;&lt;BR /&gt;         This program prints size and organization of TLB and cache&lt;BR /&gt;         Can be compiled without any specific options.&lt;BR /&gt;         Can be run by a user that has read access to /dev/mem.&lt;BR /&gt;&lt;BR /&gt;         Author: Georges Aureau&lt;BR /&gt;         Modified by Bernd Bausch&lt;BR /&gt;&lt;BR /&gt; **************************************************************************/&lt;BR /&gt;&lt;BR /&gt;#include &lt;FCNTL.H&gt;&lt;BR /&gt;#include &lt;NLIST.H&gt;&lt;BR /&gt;#include &lt;TIME.H&gt;&lt;BR /&gt;#include &lt;MACHINE&gt;&lt;BR /&gt;#include &lt;MACHINE&gt;&lt;BR /&gt;&lt;BR /&gt;struct nlist namelist[] = {&lt;BR /&gt;        {"cache_tlb_parms"},&lt;BR /&gt;        {"cpu_has_hw_tlb_assist"},&lt;BR /&gt;        {0}&lt;BR /&gt;};&lt;BR /&gt;&lt;BR /&gt;cleanup(msg) { perror(msg); exit(1); }&lt;BR /&gt;&lt;BR /&gt;main()&lt;BR /&gt;{&lt;BR /&gt;  int hwtlb;&lt;BR /&gt;  int unified_cache,unified_tlb;&lt;BR /&gt;  char *kernel;&lt;BR /&gt;  int core;&lt;BR /&gt;  struct pdc_cache_rtn_block cache_tlb_parms;&lt;BR /&gt;&lt;BR /&gt;    kernel="/stand/build/vmunix_test";&lt;BR /&gt;    if (nlist(kernel, namelist) &amp;lt; 0)&lt;BR /&gt;    {&lt;BR /&gt;        kernel = "/hp-ux";&lt;BR /&gt;        if (nlist(kernel, namelist) &amp;lt; 0)&lt;BR /&gt;            cleanup("nlist");&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    if ((core = open("/dev/mem", O_RDONLY)) &amp;lt; 0) cleanup("open kmem");&lt;BR /&gt;&lt;BR /&gt;    if (lseek(core, namelist[1].n_value, 0) &amp;lt; 0)&lt;BR /&gt;            cleanup("lseek");&lt;BR /&gt;&lt;BR /&gt;    if (read(core, &amp;amp;hwtlb, sizeof(hwtlb)) &amp;lt; 0)&lt;BR /&gt;            cleanup("read");&lt;BR /&gt;&lt;BR /&gt;    if (lseek(core, namelist[0].n_value, 0) &amp;lt; 0)&lt;BR /&gt;            cleanup("lseek");&lt;BR /&gt;&lt;BR /&gt;    if (read(core, &amp;amp;cache_tlb_parms, sizeof(struct pdc_cache_rtn_block)) &amp;lt;&lt;BR /&gt;0)&lt;BR /&gt;            cleanup("read");&lt;BR /&gt;&lt;BR /&gt;    unified_cache = cache_tlb_parms.ic_conf.f_sel;&lt;BR /&gt;    unified_tlb = cache_tlb_parms.it_conf.p_sel;&lt;BR /&gt;    printf( "\n" );&lt;BR /&gt;    printf("%sHW TLB walker%s\n",hwtlb?"":"NO ",hwtlb?" present":"" );&lt;BR /&gt;    printf("TLB is %s\n",unified_tlb?"unified":"separate");&lt;BR /&gt;    if ( unified_tlb )&lt;BR /&gt;        printf("TLB size is %d entries\n", cache_tlb_parms.it_size);&lt;BR /&gt;    else&lt;BR /&gt;    {&lt;BR /&gt;        printf("I TLB size is %d entries\n", cache_tlb_parms.it_size);&lt;BR /&gt;        printf("D TLB size is %d entries\n", cache_tlb_parms.dt_size);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;    printf("\nCache is %s\n",unified_cache?"unified":"separate");&lt;BR /&gt;    if ( unified_cache )&lt;BR /&gt;        printf("cache size is %d bytes (room for %d pages)\n",&lt;BR /&gt;                cache_tlb_parms.ic_size,cache_tlb_parms.ic_size/4096);&lt;BR /&gt;    else&lt;BR /&gt;    {&lt;BR /&gt;        printf("I cache size is %d bytes (room for %d pages)\n",&lt;BR /&gt;                cache_tlb_parms.ic_size,cache_tlb_parms.ic_size/4096);&lt;BR /&gt;        printf("D cache size is %d bytes (room for %d pages)\n",&lt;BR /&gt;                cache_tlb_parms.dc_size,cache_tlb_parms.dc_size/4096);&lt;BR /&gt;    }&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;    printf("\nOne cache line is %d bytes\n",&lt;BR /&gt;           cache_tlb_parms.ic_conf.blocksize*16);&lt;BR /&gt;    printf("Cache lines per chunk: %d\n",&lt;BR /&gt;           cache_tlb_parms.ic_conf.lines_per_chunk );&lt;BR /&gt;    printf("HW page size is %d bytes\n",&lt;BR /&gt;           cache_tlb_parms.it_conf.page_size?4096:2048);&lt;BR /&gt;}&lt;BR /&gt;&lt;/MACHINE&gt;&lt;/MACHINE&gt;&lt;/TIME.H&gt;&lt;/NLIST.H&gt;&lt;/FCNTL.H&gt;</description>
      <pubDate>Wed, 20 Feb 2002 17:40:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668295#M50217</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668296#M50218</link>
      <description>Like this:&lt;BR /&gt;&lt;BR /&gt;# a.out&lt;BR /&gt;&lt;BR /&gt;HW TLB walker present&lt;BR /&gt;TLB is unified&lt;BR /&gt;TLB size is 64 entries&lt;BR /&gt;&lt;BR /&gt;Cache is separate&lt;BR /&gt;I cache size is 131072 bytes (room for 32 pages)&lt;BR /&gt;D cache size is 131072 bytes (room for 32 pages)&lt;BR /&gt;&lt;BR /&gt;One cache line is 32 bytes&lt;BR /&gt;Cache lines per chunk: 1&lt;BR /&gt;HW page size is 0 bytes&lt;BR /&gt;TLB is unified&lt;BR /&gt;TLB size is 64 entries&lt;BR /&gt;&lt;BR /&gt;Cache is separate&lt;BR /&gt;I cache size is 131072 bytes (room for 32 pages)&lt;BR /&gt;D cache size is 131072 bytes (room for 32 pages)&lt;BR /&gt;&lt;BR /&gt;One cache line is 32 bytes&lt;BR /&gt;Cache lines per chunk: 1&lt;BR /&gt;HW page size is 4096 bytes&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;-----------------&lt;BR /&gt;&lt;BR /&gt;With the first "HW page size" line is the one i padded with zero. Does it have the same value as the one in the last line ?&lt;BR /&gt;&lt;BR /&gt;... Now that I see the output, it looks like there was something clipped double in your post. Could you retry an attachment version ?&lt;BR /&gt;&lt;BR /&gt;Volker&lt;BR /&gt;&lt;BR /&gt;BTW: this box is not patched very up to date (could be an early 2001 bundle)</description>
      <pubDate>Wed, 20 Feb 2002 17:41:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668296#M50218</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-20T17:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668297#M50219</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;you modified the kernel file parameter !&lt;BR /&gt;&lt;BR /&gt;# cc proc1.c&lt;BR /&gt;# a.out&lt;BR /&gt;&lt;BR /&gt;HW TLB walker present&lt;BR /&gt;TLB is unified&lt;BR /&gt;TLB size is 64 entries&lt;BR /&gt;&lt;BR /&gt;Cache is separate&lt;BR /&gt;I cache size is 131072 bytes (room for 32 pages)&lt;BR /&gt;D cache size is 131072 bytes (room for 32 pages)&lt;BR /&gt;&lt;BR /&gt;One cache line is 32 bytes&lt;BR /&gt;Cache lines per chunk: 1&lt;BR /&gt;HW page size is 4096 bytes&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;but only after I rechanged &lt;BR /&gt;&lt;BR /&gt;kernel="/stand/vmunix";&lt;BR /&gt;&lt;BR /&gt;not "/stand/build/vmunix_test"&lt;BR /&gt;&lt;BR /&gt;Cheers&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 20 Feb 2002 17:47:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668297#M50219</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-20T17:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668298#M50220</link>
      <description>Hi Volker,&lt;BR /&gt;&lt;BR /&gt;Cant send as an attachment - it simply hangs! been trying all afternoon. Maybe in the morning when its quieter.&lt;BR /&gt;&lt;BR /&gt;What compile options did you use if any ?&lt;BR /&gt;What hardware are you running it on ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Stefan&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 17:48:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668298#M50220</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T17:48:36Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668299#M50221</link>
      <description>Hi Volker,&lt;BR /&gt;&lt;BR /&gt;oops, only modified it to vmunix_test in the 2nd pasting because I was trying to build the kernel with debug on and point the cache program to the newly built test kernel !&lt;BR /&gt;&lt;BR /&gt;I can compile aok but cant get to run on anything, C, D, K, N !!&lt;BR /&gt;</description>
      <pubDate>Wed, 20 Feb 2002 17:50:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668299#M50221</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2002-02-20T17:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668300#M50222</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;Try this:&lt;BR /&gt;&lt;BR /&gt;cc +DD64 tstprog.c -lelf &lt;BR /&gt;&lt;BR /&gt;for 32bit OS's try&lt;BR /&gt;&lt;BR /&gt;cc +DD32 tstprog.c -lelf &lt;BR /&gt;&lt;BR /&gt;of course I found it here:&lt;BR /&gt;&lt;A href="http://www.geocities.com/ujjwal/3264interop.html" target="_blank"&gt;http://www.geocities.com/ujjwal/3264interop.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;and this seems to work:&lt;BR /&gt;&lt;BR /&gt;#include &lt;NLIST.H&gt;&lt;BR /&gt;#include &lt;STDIO.H&gt;&lt;BR /&gt;#include &lt;STRING.H&gt;&lt;BR /&gt;#include &lt;STDLIB.H&gt;&lt;BR /&gt;&lt;BR /&gt;main(argc, argv)&lt;BR /&gt;int argc;&lt;BR /&gt;char **argv;&lt;BR /&gt;{&lt;BR /&gt;        struct nlist64 nl[2];     /* pointer to the list  */&lt;BR /&gt;        char         nm[32];    /* name of the symbol   */&lt;BR /&gt;&lt;BR /&gt;        /* check the command line argument */&lt;BR /&gt;        if ( argc != 3 ) {&lt;BR /&gt;                fprintf(stderr,"Usage: %s executable_file_name symbol_name\n");&lt;BR /&gt;                exit(1);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        /* Initialize the list pointer */&lt;BR /&gt;        memset ( nl, 0, sizeof(nl) );&lt;BR /&gt;&lt;BR /&gt;        /* set the symbol name */&lt;BR /&gt;        sprintf(nm,"%s\0",argv[2]);&lt;BR /&gt;&lt;BR /&gt;        /* set the pointer to  the symbol */&lt;BR /&gt;        nl[0].n_name = nm;&lt;BR /&gt;&lt;BR /&gt;        /* extract the value */&lt;BR /&gt;        if ( -1 == nlist64(argv[1], nl) ) {&lt;BR /&gt;                perror("nlist() failed");&lt;BR /&gt;                exit(2);&lt;BR /&gt;        }&lt;BR /&gt;&lt;BR /&gt;        /* print the data associated with the field */&lt;BR /&gt;        printf("name %s\n",nl[0].n_name);&lt;BR /&gt;        printf("qual %s\n",nl[0].n_qual);&lt;BR /&gt;        printf("type %u\n",nl[0].n_type);&lt;BR /&gt;        printf("scope %u\n",nl[0].n_scope);&lt;BR /&gt;        printf("info %u\n",nl[0].n_info);&lt;BR /&gt;        printf("value %lu\n",nl[0].n_value);&lt;BR /&gt;&lt;BR /&gt;        exit(0);&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;runs like this:&lt;BR /&gt;&lt;BR /&gt;# ./nlst /stand/vmunix cpu_has_hw_tlb_assist&lt;BR /&gt;name cpu_has_hw_tlb_assist&lt;BR /&gt;qual &lt;BR /&gt;type 1&lt;BR /&gt;scope 0&lt;BR /&gt;info 41&lt;BR /&gt;value 78252672&lt;BR /&gt;# &lt;BR /&gt;&lt;BR /&gt;and is compiled using this:&lt;BR /&gt;cc +DD64 -onlst test.c -lelf&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry&lt;BR /&gt;&lt;/STDLIB.H&gt;&lt;/STRING.H&gt;&lt;/STDIO.H&gt;&lt;/NLIST.H&gt;</description>
      <pubDate>Wed, 20 Feb 2002 18:00:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668300#M50222</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-20T18:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668301#M50223</link>
      <description>Hi Stefan,&lt;BR /&gt;&lt;BR /&gt;I have an old E45&lt;BR /&gt;&lt;BR /&gt;what about this ?&lt;BR /&gt;&lt;BR /&gt;# ls -lrt /dev/*mem*&lt;BR /&gt;crw-r-----   1 bin        sys          3 0x000001 May 18  1995 /dev/kmem&lt;BR /&gt;crw-r-----   1 bin        sys          3 0x000000 May 18  1995 /dev/mem&lt;BR /&gt;crw-r--r--   1 root       sys         27 0x000000 Jan 17  2001 /dev/dmem&lt;BR /&gt;#&lt;BR /&gt;# ls -l /stand/vmunix&lt;BR /&gt;-rwxr-xr-x   1 root       sys        12959956 Oct 21  1999 /stand/vmunix&lt;BR /&gt;# &lt;BR /&gt;# file /stand/vmunix&lt;BR /&gt;/stand/vmunix:  PA-RISC1.1 executable -not stripped&lt;BR /&gt;&lt;BR /&gt;.... May be the box is really not well patched, as the last kernel-build was in 1999 ... :-)&lt;BR /&gt;&lt;BR /&gt;I guess this is where my C-expertiese ends.... Sorry&lt;BR /&gt;&lt;BR /&gt;Volker</description>
      <pubDate>Wed, 20 Feb 2002 18:01:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668301#M50223</guid>
      <dc:creator>Volker Borowski</dc:creator>
      <dc:date>2002-02-20T18:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: C expert needed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668302#M50224</link>
      <description>Stefan,&lt;BR /&gt;&lt;BR /&gt;The problem with your program is that it is looking for the kernel at both /stand/vmunix and at /hp-ux, which causes the first error.&lt;BR /&gt;&lt;BR /&gt;Change your original program by replacing calls or structs to nlist64 (leave the include as is). Then remove the if hp-ux crap.&lt;BR /&gt;&lt;BR /&gt;and the output should be as follows (and the compile options I used):&lt;BR /&gt;&lt;BR /&gt;# cc +DD64 -onlst tst.c -lelf&lt;BR /&gt;# ./nlst&lt;BR /&gt;&lt;BR /&gt;NO HW TLB walker&lt;BR /&gt;TLB is unified&lt;BR /&gt;TLB size is 160 entries&lt;BR /&gt;&lt;BR /&gt;Cache is separate&lt;BR /&gt;I cache size is 524288 bytes (room for 128 pages)&lt;BR /&gt;D cache size is 1048576 bytes (room for 256 pages)&lt;BR /&gt;&lt;BR /&gt;One cache line is 64 bytes&lt;BR /&gt;Cache lines per chunk: 1&lt;BR /&gt;HW page size is 12 bytes&lt;BR /&gt;TLB is unified&lt;BR /&gt;TLB size is 160 entries&lt;BR /&gt;&lt;BR /&gt;Cache is separate&lt;BR /&gt;I cache size is 524288 bytes (room for 128 pages)&lt;BR /&gt;D cache size is 1048576 bytes (room for 256 pages)&lt;BR /&gt;&lt;BR /&gt;One cache line is 64 bytes&lt;BR /&gt;Cache lines per chunk: 1&lt;BR /&gt;HW page size is 4096 bytes&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LIVE FREE or die (a lonely programmer)&lt;BR /&gt;harry</description>
      <pubDate>Wed, 20 Feb 2002 18:07:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/c-expert-needed/m-p/2668302#M50224</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2002-02-20T18:07:28Z</dc:date>
    </item>
  </channel>
</rss>

