<?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 user API  vs collection type in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810233#M1860</link>
    <description>Hi Peter,&lt;BR /&gt;thanks for your answer.&lt;BR /&gt;Actually I used the API as you suggested but had it partially working.&lt;BR /&gt;My point was about this partial result :&lt;BR /&gt;- not working with Event Based Sampling (i.e. lightweight-hotspots)&lt;BR /&gt;- partially working with User Mode Sampling (needs -duration-type very-short)&lt;BR /&gt;My question is then : is there a limitation od the user API regarding the collection configuration ?&lt;BR /&gt;Regards,&lt;BR /&gt;Marc</description>
    <pubDate>Wed, 19 Oct 2011 09:28:09 GMT</pubDate>
    <dc:creator>Marc_Amstoutz</dc:creator>
    <dc:date>2011-10-19T09:28:09Z</dc:date>
    <item>
      <title>user API  vs collection type</title>
      <link>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810231#M1858</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I'm trying to use user API and observed the following under linux version of amplxe :&lt;BR /&gt;&lt;BR /&gt;threadNaming, frame and events seems only effective for user mode sampling collections.&lt;BR /&gt;&lt;BR /&gt;Moreover, thread naming only shows half of the threads when duration-type is greater than veryshort.&lt;BR /&gt;&lt;BR /&gt;The threads are sharing the same code (worker threads).&lt;BR /&gt;&lt;BR /&gt;Are there some limitation for using user API ?&lt;BR /&gt;&lt;BR /&gt;regards,&lt;BR /&gt;Marc&lt;BR /&gt;</description>
      <pubDate>Tue, 18 Oct 2011 15:20:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810231#M1858</guid>
      <dc:creator>Marc_Amstoutz</dc:creator>
      <dc:date>2011-10-18T15:20:50Z</dc:date>
    </item>
    <item>
      <title>user API  vs collection type</title>
      <link>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810232#M1859</link>
      <description>&lt;P&gt;Usually VTune Amplifier will show entry function name as thread_name, but you can set thread name by yourself - use ittnotify API. Here is example:&lt;/P&gt;&lt;P&gt;Compile example file - itt_set_thread_name.cpp:&lt;BR /&gt;# g++ -g itt_set_thread_name.cpp /opt/intel/vtune_amplifier_xe_2011/lib64/libittnotify.a -o itt_set_thread_name.g++ -lpthread ldl&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;[cpp]#include &lt;STDIO.H&gt;
#include &lt;PTHREAD.H&gt;
#include &lt;DLFCN.H&gt;
#include "/opt/intel/vtune_amplifier_xe_2011/include/ittnotify.h"

#define NUMTHREADS 16
void *helloFunc(void *pArg)
{
   int curthread = *(int *)pArg;

   if (curthread==11) /* Want to monitor interest of thread */
        __itt_thread_set_name("Thread 12");

   for (unsigned long i=0; i&amp;lt;0x8000000; i++);
   printf("Hello Thread %dn",curthread);

   return 0;
}

main()
{
   pthread_t hThread[NUMTHREADS];
   int i, j, threadNo[NUMTHREADS];

   for (i = 0; i &amp;lt; NUMTHREADS; i++)     {
       threadNo&lt;I&gt; = i;
       pthread_create(&amp;amp;hThread&lt;I&gt;, NULL, helloFunc, &amp;amp;threadNo&lt;I&gt;);
   }

   for (j = 0; j &amp;lt; NUMTHREADS; j++)
       pthread_join(hThread&lt;J&gt;, NULL);

   return 0;
}
[/cpp]&lt;/J&gt;&lt;/I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/DLFCN.H&gt;&lt;/PTHREAD.H&gt;&lt;/STDIO.H&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2011 06:57:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810232#M1859</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2011-10-19T06:57:54Z</dc:date>
    </item>
    <item>
      <title>user API  vs collection type</title>
      <link>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810233#M1860</link>
      <description>Hi Peter,&lt;BR /&gt;thanks for your answer.&lt;BR /&gt;Actually I used the API as you suggested but had it partially working.&lt;BR /&gt;My point was about this partial result :&lt;BR /&gt;- not working with Event Based Sampling (i.e. lightweight-hotspots)&lt;BR /&gt;- partially working with User Mode Sampling (needs -duration-type very-short)&lt;BR /&gt;My question is then : is there a limitation od the user API regarding the collection configuration ?&lt;BR /&gt;Regards,&lt;BR /&gt;Marc</description>
      <pubDate>Wed, 19 Oct 2011 09:28:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810233#M1860</guid>
      <dc:creator>Marc_Amstoutz</dc:creator>
      <dc:date>2011-10-19T09:28:09Z</dc:date>
    </item>
    <item>
      <title>user API  vs collection type</title>
      <link>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810234#M1861</link>
      <description>Hi Peter,&lt;BR /&gt;I managed to have thread names with Event Based Sampling (i.e. lightweight-hotspots), but nor event.&lt;BR /&gt;With user mode sampling, the events shows up (using windows version), but I have a question : I have created two events, and wondered how to see event names within the "Bottom Up" panel of the gui.&lt;BR /&gt;Thanks,&lt;BR /&gt;Marc&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Oct 2011 14:19:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810234#M1861</guid>
      <dc:creator>Marc_Amstoutz</dc:creator>
      <dc:date>2011-10-19T14:19:42Z</dc:date>
    </item>
    <item>
      <title>user API  vs collection type</title>
      <link>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810235#M1862</link>
      <description>&lt;P&gt;If you want to see your events in report, please refer to ittnotify.h &amp;amp; online helper.&lt;/P&gt;&lt;P&gt;Here is my &lt;A href="http://software.intel.com/zh-cn/blogs/2011/03/24/400006948/"&gt;blog &lt;/A&gt;to educate how to mark user's tasks in timeline of the report (Sorry for Chinese version, butexample code can be referenced)&lt;/P&gt;&lt;P&gt;Regards, Peter &lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2011 01:55:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/user-API-vs-collection-type/m-p/810235#M1862</guid>
      <dc:creator>Peter_W_Intel</dc:creator>
      <dc:date>2011-10-20T01:55:46Z</dc:date>
    </item>
  </channel>
</rss>

