<?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: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383126#M22143</link>
    <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;this is my code example. It is not reproducing the problem but at least shows the usage of VTUNE APIs&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_domain* domain = __itt_domain_create("XSW-test_server.Domain.Global");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_string_handle* handle_loop_wrapping = __itt_string_handle_create("Loop_wrapping");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_string_handle* handle_api_wrapping = __itt_string_handle_create("api_wraping");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;xsw_thrift_nexthop_create_loop&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;xsw_thrift_nexthop_loop_response_t&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;_return&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;xsw_thrift_nexthop_loop_t&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_nexthop_t&lt;/SPAN&gt;&lt;SPAN&gt; xsw_nexthop = {};&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_object_id_t&lt;/SPAN&gt;&lt;SPAN&gt; nexthop_oid = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_status_t&lt;/SPAN&gt;&lt;SPAN&gt; status = XSW_STATUS_SUCCESS;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;clock_t&lt;/SPAN&gt; &lt;SPAN&gt;start_t&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&l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t;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;num_of_cycles&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; inc_val = &lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;inc_value&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; prof_start_idx = &lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;prof_start_idx&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#ifdef&lt;/SPAN&gt;&lt;SPAN&gt; XPROFILE &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; is_internal_profil = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;SPAN&gt; //XPROFILE&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;XSW_LOG_DEBUG&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"xsw_thrift_nexthop_create_loop"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsal_error&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;--XSW----LOOP- &amp;nbsp;xsw_nexthop_create_loop &lt;/SPAN&gt;&lt;SPAN&gt;%d&lt;/SPAN&gt;&lt;SPAN&gt; inc_val= &lt;/SPAN&gt;&lt;SPAN&gt;%d&lt;/SPAN&gt;&lt;SPAN&gt;,ip_addr=0x&lt;/SPAN&gt;&lt;SPAN&gt;%x&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;n_cycles&lt;/SPAN&gt;&lt;SPAN&gt;,inc_val,&lt;/SPAN&gt;&lt;SPAN&gt;xsw_nexthop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ip_addr&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addr&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ipv4&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_resume();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_frame_begin_v3(domain, NULL);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_begin(domain, __itt_null, __itt_null, handle_loop_wrapping);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/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&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (prof_start_idx == i)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#ifdef&lt;/SPAN&gt;&lt;SPAN&gt; XPROFILE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is_internal_profil = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;SPAN&gt; //XPROFILE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_begin(domain, __itt_null, __itt_null, handle_api_wrapping);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; status = &lt;/SPAN&gt;&lt;SPAN&gt;xsw_nexthop_create&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;amp;xsw_nexthop, &amp;amp;nexthop_oid);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_end(domain);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (status != XSW_STATUS_SUCCESS) &lt;/SPAN&gt;&lt;SPAN&gt;break&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;nex_oid_array&lt;/SPAN&gt;&lt;SPAN&gt;[i] = nexthop_oid;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_end(domain);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_frame_end_v3(domain, NULL);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_detach();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;exec_t&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;clock&lt;/SPAN&gt;&lt;SPAN&gt;() - &lt;/SPAN&gt;&lt;SPAN&gt;start_t&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 10 May 2022 09:30:56 GMT</pubDate>
    <dc:creator>alexanderv</dc:creator>
    <dc:date>2022-05-10T09:30:56Z</dc:date>
    <item>
      <title>VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1381767#M22125</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to profile my application with VTune 2022.&lt;/P&gt;
&lt;P&gt;I do it with attach option for both GUI and CLI.&lt;/P&gt;
&lt;P&gt;I have instrumented my code and successfully built it.&lt;/P&gt;
&lt;P&gt;My code consists of several libs both dynamic and static and I link&amp;nbsp; necessary VTune libs to every my lib in interest.&lt;/P&gt;
&lt;P&gt;Every time when I get analysis reports it is missing instrumentation data.&lt;/P&gt;
&lt;P&gt;What could be possible reasons for such missing?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 16:13:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1381767#M22125</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-04T16:13:11Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382027#M22127</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting in Intel Communities.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please can you answer the following questions:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1. What is the exact version of VTune you are using?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;2. Please can you give your OS details?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;3. Are you using the ITT APIs ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;4. Please can you share with which analysis you are trying to profile your application?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;5. Please can you share the exact steps you followed and a sample reproducer(sample application which is similar to the application you are trying to profile)?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;6. What kind of application you are trying to profile?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 05 May 2022 11:33:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382027#M22127</guid>
      <dc:creator>VaradJ_Intel</dc:creator>
      <dc:date>2022-05-05T11:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382599#M22135</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN class="UserName lia-user-name lia-user-rank-Moderator"&gt;&lt;SPAN class="lia-link-navigation lia-page-link lia-link-disabled lia-user-name-link"&gt;&lt;SPAN class="login-bold"&gt;VaradJ_Intel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="messageEditor_90da4df8ed8ed9_0" class="MessageEditor"&gt;&lt;A id="previewButton_90da4df8ed8ed9_af596" class="lia-link-navigation lia-message-editor-preview-button" href="https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382027/emcs_t/S2h8ZW1haWx8dG9waWNfc3Vic2NyaXB0aW9ufEwyU1hKVk45RVlLOTMwfDEzODIwMjd8U1VCU0NSSVBUSU9OU3xoSw#" target="_blank" rel="noopener"&gt;Preview&lt;/A&gt;
&lt;DIV class="lia-js-block-events"&gt;
&lt;DIV class="lia-form-row lia-form-body-entry"&gt;
&lt;DIV class="lia-quilt-row lia-quilt-row-standard"&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-24 lia-quilt-column-single"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-single"&gt;
&lt;DIV class="lia-form-input-wrapper"&gt;
&lt;DIV id="rich_90da4df8ed8ed9_af596" class="message-body-editor lia-inline-message-body-editor"&gt;
&lt;DIV class="lia-inline-ajax-feedback"&gt;
&lt;P class="sub_section_element_selectors"&gt;1. What is the exact version of VTune you are using?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Intel VTune Profiler 2022.2.0&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Product buld: 623516&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;2. Please can you give your OS details?&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Distributor ID: Ubuntu&lt;BR /&gt;Description: Ubuntu 18.04.6 LTS&lt;BR /&gt;Release: 18.04&lt;BR /&gt;Codename: bionic&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;3. Are you using the ITT APIs ?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Yes&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;4. Please can you share with which analysis you are trying to profile your application?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;HotSpots&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;5. Please can you share the exact steps you followed and a sample reproducer(sample application which is similar to the application you are trying to profile)?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;I don't have a sample reproducer.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;I have created global domain&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;#include "ittnotify.h"&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;__itt_domain* domain = __itt_domain_create("XSW-test_server.Domain.Global");&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;__itt_string_handle* handle_loop_wrapping = __itt_string_handle_create("Loop_wrapping");&lt;BR /&gt;__itt_string_handle* handle_api_wrapping = __itt_string_handle_create("api_wraping");&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Then I put next rows into my functions&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;__itt_frame_begin_v3(domain, NULL);&lt;BR /&gt;__itt_task_begin(domain, __itt_null, __itt_null, handle_loop_wrapping);&lt;BR /&gt;start_t = clock();&lt;BR /&gt;for (i = 0; i &amp;lt; n_cycles; i++) {&lt;BR /&gt;xsw_nexthop.ip_addr.addr.ipv4 = htonl(ntohl(xsw_nexthop.ip_addr.addr.ipv4) + ((i!=0) ? inc_val : 0));&lt;BR /&gt;if (prof_start_idx == i)&lt;BR /&gt;{&lt;BR /&gt;is_internal_profil = 1;&lt;BR /&gt;}&lt;BR /&gt;__itt_task_begin(domain, __itt_null, __itt_null, handle_api_wrapping);&lt;BR /&gt;status = xsw_nexthop_create(&amp;amp;xsw_nexthop, &amp;amp;nexthop_oid);&lt;BR /&gt;__itt_task_end(domain);&lt;BR /&gt;if (status != XSW_STATUS_SUCCESS) break;&lt;BR /&gt;nex_oid_array[i] = nexthop_oid;&lt;BR /&gt;}&lt;BR /&gt;__itt_task_end(domain);&lt;BR /&gt;__itt_frame_end_v3(domain, NULL);&lt;BR /&gt;__itt_detach();&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Of course I have added necessary libraries to the link and have checked their presence in the executable.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;6. What kind of application you are trying to profile?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;it is Thrift based application implementing HAL layer of NOS like Sonic and configuring some proprietary developed ASIC.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV id="mceu_94" class="mce-tinymce mce-container mce-panel lia-editor-gte-2" tabindex="-1" role="application"&gt;
&lt;DIV id="mceu_94-body" class="mce-container-body mce-stack-layout"&gt;
&lt;DIV id="mceu_95" class="mce-top-part mce-container mce-stack-layout-item mce-first"&gt;
&lt;DIV id="mceu_95-body" class="mce-container-body"&gt;
&lt;DIV id="mceu_96" class="mce-toolbar-grp mce-container mce-panel mce-first mce-last" tabindex="-1" role="group"&gt;
&lt;DIV id="mceu_96-body" class="mce-container-body mce-stack-layout"&gt;
&lt;DIV id="mceu_97" class="mce-container mce-toolbar mce-stack-layout-item mce-first" role="toolbar"&gt;
&lt;DIV id="mceu_97-body" class="mce-container-body mce-flow-layout"&gt;
&lt;DIV id="mceu_98" class="mce-container mce-flow-layout-item mce-first mce-btn-group" role="group"&gt;
&lt;DIV id="mceu_98-body"&gt;
&lt;DIV id="mceu_56" class="mce-widget mce-btn mce-btn-small mce-first lia-mce-toolbar-bold" tabindex="-1" role="button" aria-pressed="false" aria-label="Bold"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="mceu_57" class="mce-widget mce-btn mce-btn-small lia-mce-toolbar-italic" tabindex="-1" role="button" aria-pressed="false" aria-label="Italic"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="mceu_58" class="mce-widget mce-btn mce-btn-small lia-mce-toolbar-underline" tabindex="-1" role="button" aria-pressed="false" aria-label="Underline"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV id="mceu_59" class="mce-widget mce-btn mce-btn-small mce-last lia-mce-toolbar-strikethrough" tabindex="-1" role="button" aria-pressed="false" aria-label="Strikethrough"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="mceu_99" class="mce-container mce-flow-layout-item mce-btn-group" role="group"&gt;
&lt;DIV id="mceu_99-body"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV id="mceu_100" class="mce-container mce-flow-layout-item mce-btn-group" role="group"&gt;
&lt;DIV id="mceu_100-body"&gt;
&lt;DIV id="mceu_60" class="mce-widget mce-btn mce-btn-small mce-first lia-mce-toolbar-contextlink" tabindex="-1" role="button" aria-pressed="false" aria-label="Insert/edit link"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Sun, 08 May 2022 09:27:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382599#M22135</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-08T09:27:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382848#M22140</link>
      <description>&lt;P&gt;I don't see my reply and yours as well!!!!&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 12:59:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382848#M22140</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-09T12:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382853#M22141</link>
      <description>&lt;P class="sub_section_element_selectors"&gt;1. What is the exact version of VTune you are using?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;2022.2.0&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Product build 623516&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;2. Please can you give your OS details?&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Distributor ID: Ubuntu&lt;BR /&gt;Description: Ubuntu 18.04.6 LTS&lt;BR /&gt;Release: 18.04&lt;BR /&gt;Codename: bionic&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;3. Are you using the ITT APIs ?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Yes&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;4. Please can you share with which analysis you are trying to profile your application?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;Hotspots&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;5. Please can you share the exact steps you followed and a sample reproducer(sample application which is similar to the application you are trying to profile)?&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;I don't have sample application that reproduce the problem.&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;My application is Thrift based application for development HAL for NOS like SONiC&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="sub_section_element_selectors"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 May 2022 13:16:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1382853#M22141</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-09T13:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383126#M22143</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;this is my code example. It is not reproducing the problem but at least shows the usage of VTUNE APIs&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_domain* domain = __itt_domain_create("XSW-test_server.Domain.Global");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_string_handle* handle_loop_wrapping = __itt_string_handle_create("Loop_wrapping");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_string_handle* handle_api_wrapping = __itt_string_handle_create("api_wraping");&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt; &lt;SPAN&gt;xsw_thrift_nexthop_create_loop&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;xsw_thrift_nexthop_loop_response_t&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;_return&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;xsw_thrift_nexthop_loop_t&lt;/SPAN&gt; &lt;SPAN&gt;&amp;amp;&lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_nexthop_t&lt;/SPAN&gt;&lt;SPAN&gt; xsw_nexthop = {};&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_object_id_t&lt;/SPAN&gt;&lt;SPAN&gt; nexthop_oid = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_status_t&lt;/SPAN&gt;&lt;SPAN&gt; status = XSW_STATUS_SUCCESS;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;clock_t&lt;/SPAN&gt; &lt;SPAN&gt;start_t&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;exec_t&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; i;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; n_cycles;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; inc_val;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; prof_start_idx;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsw_object_id_t&lt;/SPAN&gt; &lt;SPAN&gt;nex_oid_array&lt;/SPAN&gt;&lt;SPAN&gt;[XSW_IPV4_HOST_TABLE_SIZE - &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;];&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;assign&lt;/SPAN&gt;&lt;SPAN&gt;(xsw_nexthop, thrift_nexthop_loop);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; n_cycles = &lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;num_of_cycles&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; inc_val = &lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;inc_value&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; prof_start_idx = &lt;/SPAN&gt;&lt;SPAN&gt;thrift_nexthop_loop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;prof_start_idx&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#ifdef&lt;/SPAN&gt;&lt;SPAN&gt; XPROFILE &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; is_internal_profil = &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;SPAN&gt; //XPROFILE&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;XSW_LOG_DEBUG&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"xsw_thrift_nexthop_create_loop"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;xsal_error&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&amp;lt;--XSW----LOOP- &amp;nbsp;xsw_nexthop_create_loop &lt;/SPAN&gt;&lt;SPAN&gt;%d&lt;/SPAN&gt;&lt;SPAN&gt; inc_val= &lt;/SPAN&gt;&lt;SPAN&gt;%d&lt;/SPAN&gt;&lt;SPAN&gt;,ip_addr=0x&lt;/SPAN&gt;&lt;SPAN&gt;%x&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;n_cycles&lt;/SPAN&gt;&lt;SPAN&gt;,inc_val,&lt;/SPAN&gt;&lt;SPAN&gt;xsw_nexthop&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ip_addr&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;addr&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ipv4&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_resume();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_frame_begin_v3(domain, NULL);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_begin(domain, __itt_null, __itt_null, handle_loop_wrapping);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;start_t&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;clock&lt;/SPAN&gt;&lt;SPAN&gt;();&lt;/SPA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SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (prof_start_idx == i)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#ifdef&lt;/SPAN&gt;&lt;SPAN&gt; XPROFILE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; is_internal_profil = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;SPAN&gt; //XPROFILE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_begin(domain, __itt_null, __itt_null, handle_api_wrapping);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; status = &lt;/SPAN&gt;&lt;SPAN&gt;xsw_nexthop_create&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;amp;xsw_nexthop, &amp;amp;nexthop_oid);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_end(domain);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;if&lt;/SPAN&gt;&lt;SPAN&gt; (status != XSW_STATUS_SUCCESS) &lt;/SPAN&gt;&lt;SPAN&gt;break&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;nex_oid_array&lt;/SPAN&gt;&lt;SPAN&gt;[i] = nexthop_oid;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_task_end(domain);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_frame_end_v3(domain, NULL);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;__itt_detach();&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;exec_t&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;clock&lt;/SPAN&gt;&lt;SPAN&gt;() - &lt;/SPAN&gt;&lt;SPAN&gt;start_t&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 10 May 2022 09:30:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383126#M22143</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-10T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383794#M22153</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for sharing the details.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please can you share all files of report as zip file with us?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Meanwhile, You can also refer about ITT api from the below link:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis.html#:~:text=The%20ITT%20API%20is%20a%20set%20of%20pure,can%20pause%20the%20analysis%20to%20reduce%20the%20overhead" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis.html#:~:text=The%20ITT%20API%20is%20a%20set%20of%20pure,can%20pause%20the%20analysis%20to%20reduce%20the%20overhead&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 May 2022 11:55:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383794#M22153</guid>
      <dc:creator>VaradJ_Intel</dc:creator>
      <dc:date>2022-05-12T11:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383875#M22155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have created sample application that reconstruct the problem in attach mode but works in launch mode&lt;/P&gt;
&lt;P&gt;zip file attached&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2022 16:35:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1383875#M22155</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-12T16:35:53Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1385179#M22181</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We tried reproducing the issue with the files you sent, but we are able to see the instrumentation data in the report.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please can you zip your result folder and share it with us for further investigation.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Note: Result folder has name similar to 'rXXXhs' where 'XXX' would be some number.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 18 May 2022 07:38:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1385179#M22181</guid>
      <dc:creator>VaradJ_Intel</dc:creator>
      <dc:date>2022-05-18T07:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1385210#M22182</link>
      <description>&lt;P&gt;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;21 launch, consists of -itt_ profiling data&lt;/P&gt;
&lt;P&gt;22 attach, doesn't consist&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 09:31:35 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1385210#M22182</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-05-18T09:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld lib</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1385587#M22187</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/198419"&gt;@alexanderv&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You for providing the result folders.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We were able to reproduce the issue. We are working on it and we will get back to you with an update soon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 11:24:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1385587#M22187</guid>
      <dc:creator>VaradJ_Intel</dc:creator>
      <dc:date>2022-05-19T11:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld lib</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1392958#M22292</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any progress regarding this issue?&lt;/P&gt;
&lt;P&gt;Actually I need it badly &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 08:58:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1392958#M22292</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-06-16T08:58:23Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1393084#M22294</link>
      <description>&lt;P&gt;Hello Alexander,&lt;/P&gt;&lt;P&gt;When you attach to a running application/process from VTune Profiler (CLI and GUI), to get the ITT API data, the application needs several environment variables set before it starts:&lt;/P&gt;&lt;P&gt;INTEL_LIBITTNOTIFY32=&amp;lt;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/installation.html#installation_GUID-F1EBF94F-1621-4B22-9487-BB442B813028" rel="noopener noreferrer" target="_blank"&gt;&lt;EM&gt;install-dir&lt;/EM&gt;&lt;/A&gt;&amp;gt;/lib32/runtime/libittnotify_collector.so&lt;/P&gt;&lt;P&gt;INTEL_LIBITTNOTIFY64=&amp;lt;&lt;EM&gt;install-dir&lt;/EM&gt;&amp;gt;/lib64/runtime/libittnotify_collector.so&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information, see&amp;nbsp;&lt;A href="https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis/basic-usage-and-configuration/attaching-itt-apis-to-a-launched-application.html" rel="noopener noreferrer" target="_blank"&gt;https://www.intel.com/content/www/us/en/develop/documentation/vtune-help/top/api-support/instrumentation-and-tracing-technology-apis/basic-usage-and-configuration/attaching-itt-apis-to-a-launched-application.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2022 16:59:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1393084#M22294</guid>
      <dc:creator>Jeffrey_R_Intel1</dc:creator>
      <dc:date>2022-06-16T16:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1393329#M22295</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/109704"&gt;@Jeffrey_R_Intel1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These paths were set definitely!&lt;/P&gt;
&lt;P&gt;I have double checked everything related to install procedure!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alexanderv_0-1655450501502.png" style="width: 751px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/30652i13AB27C4841294AE/image-dimensions/751x113/is-moderation-mode/true?v=v2&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" width="751" height="113" role="button" title="alexanderv_0-1655450501502.png" alt="alexanderv_0-1655450501502.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It is definitely NOT the reason.&lt;/P&gt;
&lt;P&gt;I still hope for real solution&lt;/P&gt;
&lt;P&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 07:26:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1393329#M22295</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-06-17T07:26:03Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394291#M22302</link>
      <description>&lt;P&gt;Hello Alexander,&lt;/P&gt;&lt;P&gt;Just to clarify, those environment variables were set in the context where the application (not the vtune command line) was started, correct?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2022 20:33:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394291#M22302</guid>
      <dc:creator>Jeffrey_R_Intel1</dc:creator>
      <dc:date>2022-06-21T20:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394311#M22303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/109704"&gt;@Jeffrey_R_Intel1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variables were set on remote machine where application in question was running&amp;nbsp; and the set command was invoked in application folder.&lt;/P&gt;
&lt;P&gt;There was installation of VTune too but for analysis I used GUI VTune application on my Windows laptop with remote attachment to this machine.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alexander&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jun 2022 21:59:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394311#M22303</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-06-21T21:59:37Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394317#M22304</link>
      <description>&lt;P&gt;Hello Alexander,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for providing the reproducer. Please try these changes in your test case.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In the example you provided, the child thread calls __itt_task_begin() only once with no guarantee it has not already been called when vtune attaches to the process. If I modify your example and move the ITT calls inside the loop and insert another sleep(1) so they are not being called in rapid succession, I can see the user tasks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Likewise, in hworld.cpp, it is calling __itt_task_begin() without a matching __itt_task_end() immediately when it is created. If I add the __itt_task_end before entering the loop, I expect to see those user tasks. However, I had to change the hworld.cpp ITT domain creation to create a unique domain name from the child thread OR move the "dn =thdm" statement after the thread is created to see the main thread user tasks.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you can reproduce these experiments to see the user tasks and whether these changes may also be relevant to your real workload.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 21 Jun 2022 22:25:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394317#M22304</guid>
      <dc:creator>Jeffrey_R_Intel1</dc:creator>
      <dc:date>2022-06-21T22:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394526#M22307</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/109704"&gt;@Jeffrey_R_Intel1&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/176869"&gt;@VaradJ_Intel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried the suggested by you in different approaches, but eventually it didn't work.&lt;/P&gt;
&lt;P&gt;I have ensured attachment before invocation of __itt functions&lt;/P&gt;
&lt;P&gt;Please see my last variant of code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;void*&lt;/SPAN&gt; &lt;SPAN&gt;threadFunction&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void*&lt;/SPAN&gt; &lt;SPAN&gt;args&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;thdm&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;__itt_domain_create&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"DomainThreadFunction"&lt;/SPAN&gt;&lt;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;(&lt;/SPAN&gt;&lt;SPAN&gt;i&lt;/SPAN&gt;&lt;SPAN&gt;--) &lt;/SPAN&gt;&lt;SPAN&gt;sleep&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;printf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;Main:Create string handles"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;dm&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;__itt_domain_create&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"DomainMain"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;handle_main&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;__itt_string_handle_create&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"XSW-main"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;handle_loop&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;__itt_string_handle_create&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"XSW-loop"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&l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// __itt_task_begin(dm, __itt_null, __itt_null, handle_main);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;printf&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"Hello World!&lt;/SPAN&gt;&lt;SPAN&gt;\n&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;sleep&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;// __itt_task_end(dm);&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Jun 2022 14:20:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394526#M22307</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-06-22T14:20:46Z</dc:date>
    </item>
    <item>
      <title>Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld libs</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394537#M22308</link>
      <description>&lt;P&gt;Hello Alexander,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What is your "uname -a" output?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;With the following code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;void* threadFunction(void* args)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;thdm = __itt_domain_create("DomainThreadFunction");&lt;/P&gt;&lt;P&gt;&amp;nbsp;handle_th = __itt_string_handle_create("ThFuncLoop");&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint32_t idx=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;while (idx--) sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;idx=10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;while(idx--)&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;__itt_task_begin(thdm, __itt_null, __itt_null, handle_th);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;printf("I am threadFunction. %d \n", idx);&lt;/P&gt;&lt;P&gt;__itt_task_end(thdm);&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;// __itt_detach();&lt;/P&gt;&lt;P&gt;&amp;nbsp;return (void *) &amp;amp;threadFunction;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;int main()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;pthread_t id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;int ret;&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint32_t i = 10;&lt;/P&gt;&lt;P&gt;&amp;nbsp;while(i--) sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;printf("\nMain:Create string handles");&lt;/P&gt;&lt;P&gt;&amp;nbsp;dm = __itt_domain_create("DomainMain");&lt;/P&gt;&lt;P&gt;&amp;nbsp;handle_main = __itt_string_handle_create("XSW-main");&lt;/P&gt;&lt;P&gt;&amp;nbsp;handle_loop = __itt_string_handle_create("XSW-loop");&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;__itt_task_begin(dm, __itt_null, __itt_null, handle_main);&lt;/P&gt;&lt;P&gt;&amp;nbsp;sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;__itt_task_end(dm);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;/*creating thread*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;ret=pthread_create(&amp;amp;id,NULL,&amp;amp;threadFunction,NULL);&lt;/P&gt;&lt;P&gt;&amp;nbsp;if(ret==0){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;printf("\nbThread created successfully.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;else{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;printf("\nThread not created.\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;return 0; /*return from main*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint32_t idx=20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;while(idx--)&lt;/P&gt;&lt;P&gt;&amp;nbsp;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;__itt_task_begin(dm, __itt_null, __itt_null, handle_loop);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;sleep(1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;printf("I am main function %d.\n",idx);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;__itt_task_end(dm);&lt;/P&gt;&lt;P&gt;&amp;nbsp;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;__itt_task_begin(dm, __itt_null, __itt_null, handle_main);&lt;/P&gt;&lt;P&gt;&amp;nbsp;printf("Hello World!\n");&lt;/P&gt;&lt;P&gt;&amp;nbsp;sleep(1);&lt;/P&gt;&lt;P&gt;__itt_task_end(dm);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;return 0;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;If I run the application without the following commands:&lt;/P&gt;&lt;P&gt;export INTEL_LIBITTNOTIFY32=/opt/intel/oneapi/vtune/2022.2.0/lib32/runtime/libittnotify_collector.so&lt;/P&gt;&lt;P&gt;export INTEL_LIBITTNOTIFY64=/opt/intel/oneapi/vtune/2022.2.0/lib64/runtime/libittnotify_collector.so&lt;/P&gt;&lt;P&gt;I do not get ITT user tasks in the vtune output.&lt;/P&gt;&lt;P&gt;If I first set the environment variables before starting the application, vtune reports:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Top Tasks&lt;/P&gt;&lt;P&gt;Task Type&amp;nbsp;Task Time Task Count Average Task Time&lt;/P&gt;&lt;P&gt;---------- --------- ---------- -----------------&lt;/P&gt;&lt;P&gt;XSW-loop&amp;nbsp;&amp;nbsp;20.002s&amp;nbsp;&amp;nbsp;&amp;nbsp;20&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.000s&lt;/P&gt;&lt;P&gt;ThFuncLoop&amp;nbsp;10.001s&amp;nbsp;&amp;nbsp;&amp;nbsp;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.000s&lt;/P&gt;&lt;P&gt;XSW-main&amp;nbsp;&amp;nbsp;2.000s&amp;nbsp;&amp;nbsp;&amp;nbsp;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;1.000s&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:02:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394537#M22308</guid>
      <dc:creator>Jeffrey_R_Intel1</dc:creator>
      <dc:date>2022-06-22T15:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: Re:VTune 2022 instrumentation doesn't provide results despite being linked with pthreads and ld</title>
      <link>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394543#M22309</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.intel.com/t5/user/viewprofilepage/user-id/109704"&gt;@Jeffrey_R_Intel1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You are right!&lt;/P&gt;
&lt;P&gt;It was user issue.&lt;/P&gt;
&lt;P&gt;I have set this variables under another user.&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;BTW my company would be interested to hire somebody to help us analyze our system or at least to provide some effective course of system and application analysis in the light of our specific needs. Is there any such support in Intel?&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Alexander&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 15:18:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/VTune-2022-instrumentation-doesn-t-provide-results-despite-being/m-p/1394543#M22309</guid>
      <dc:creator>alexanderv</dc:creator>
      <dc:date>2022-06-22T15:18:55Z</dc:date>
    </item>
  </channel>
</rss>

