<?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:Intel VTune Profiler's &amp;quot;Application Output&amp;quot; Cannot Show Standard Error (stderr) in Analyzers</title>
    <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1592572#M24631</link>
    <description>&lt;P&gt;I installed VTune on the remote server and started it in Web mode, using the following command:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;~/intel/oneapi/vtune/2024.1/bin64/vtune-backend --web-port 8080 --enable-server-profiling&lt;/LI-CODE&gt;&lt;P&gt;And yes, I can confirm that Web mode can correctly capture stderr messages.&lt;/P&gt;&lt;P&gt;Thanks for introducing me to VTune's Web mode. It's extremely useful for server development.&lt;/P&gt;</description>
    <pubDate>Thu, 25 Apr 2024 08:54:38 GMT</pubDate>
    <dc:creator>niconiconi</dc:creator>
    <dc:date>2024-04-25T08:54:38Z</dc:date>
    <item>
      <title>Intel VTune Profiler's "Application Output" Cannot Show Standard Error (stderr)</title>
      <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1587746#M24546</link>
      <description>&lt;P&gt;I'm reporting a frustrating problem in Intel VTune Profiler - the Application Output window only shows standard output (stdout), not standard error (stderr). It can be reproduced by writing a C program like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;#include &amp;lt;stdio.h&amp;gt;
int main(void)
{
    fprintf(stderr, "VTune cannot capture this message!\n");
    return 0;
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The message never shows up in "Application Output", at least not in "Remote Linux (SSH)" mode.&lt;/P&gt;&lt;P&gt;This severely affects developer experience: Whenever VTune is used, one must modify and recompile the code to redirect stderr to stdout, otherwise some errors messages are never captured.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 13:37:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1587746#M24546</guid>
      <dc:creator>niconiconi</dc:creator>
      <dc:date>2024-04-09T13:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: Intel VTune Profiler's "Application Output" Cannot Show Standard Error (stderr)</title>
      <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1587896#M24547</link>
      <description>&lt;P&gt;I am not sure I understand your question correctly. Below is my test result based on your sample code. You can see there is a message output when running the VTune command line remotely.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;yuzhang3@yuzhang3-10710:~/workspace/test/print-err$ &lt;STRONG&gt;vtune -collect uarch-exploration -- ./test&lt;/STRONG&gt;&lt;BR /&gt;vtune: Warning: To enable hardware event-based sampling, VTune Profiler has disabled the NMI watchdog timer. The watchdog timer will be re-enabled after collection completes.&lt;BR /&gt;vtune: Collection started. To stop the collection, either press CTRL-C or enter from another console window: vtune -r /home/yuzhang3/workspace/test/print-err/r001ue -command stop.&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;VTune cannot capture this message!&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;vtune: Collection stopped.&lt;BR /&gt;vtune: Using result path `/home/yuzhang3/workspace/test/print-err/r001ue'&lt;BR /&gt;vtune: Executing actions 19 % Resolving module symbols&lt;BR /&gt;vtune: Warning: Cannot locate file `vmlinux'.&lt;BR /&gt;vtune: Executing actions 19 % Resolving information for `vmlinux'&lt;BR /&gt;vtune: Warning: Cannot locate debugging information for the Linux kernel. Source-level analysis will not be possible. Function-level analysis will be limited to kernel symbol tables. See the Enabling Linux Kernel Analysis topic in the product online help for instructions.&lt;BR /&gt;vtune: Executing actions 75 % Generating a report Elapsed Time: 0.005s&lt;BR /&gt;| Application execution time is too short. Metrics data may be unreliable.&lt;BR /&gt;| Consider reducing the sampling interval or increasing your application&lt;BR /&gt;| execution time.&lt;BR /&gt;|&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 02:47:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1587896#M24547</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-04-10T02:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Intel VTune Profiler's "Application Output" Cannot Show Standard Error (stderr)</title>
      <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1588007#M24549</link>
      <description>&lt;P&gt;The problem is vtune-gui, not the command-line vtune - which is obiviously not affected (because any CLI program launched within a console prints directly to that console, so it's always displayed regardless of whether VTune can capture it).&lt;/P&gt;&lt;P&gt;To reproduce, first, enable the console logging:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Launch &lt;EM&gt;vtune-gui&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Click the&lt;EM&gt; Setting&lt;/EM&gt; icon at the bottom left&lt;/LI&gt;&lt;LI&gt;Set &lt;EM&gt;Application Output Destination: Product Output Window&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Check&lt;EM&gt; Display Verbose Messages in the Collection Log Window&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Then,&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Click &lt;EM&gt;Configure Analysis&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Select&lt;EM&gt; Where: Remote Linux (SSH)&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Select&lt;EM&gt; What: Enter Application Path&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;Click Start&lt;/EM&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Now, during an analysis, the black console output window will be shown at the bottom of the screen at the bottom of the VTune window (see screenshot), If it doesn't show up, click the "four dots" icon to enable it. However, only stdout will be displayed, anything printed to stderr will not be displayed. I haven't tested if local applications have the same problem as I only profile remote applications, but I strongly suspect both are problematic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_2024-04-10_08-20-43.png" style="width: 999px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53588iB5BDD962B7BEE371/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="Screenshot_2024-04-10_08-20-43.png" alt="Screenshot_2024-04-10_08-20-43.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 08:25:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1588007#M24549</guid>
      <dc:creator>niconiconi</dc:creator>
      <dc:date>2024-04-10T08:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Intel VTune Profiler's "Application Output" Cannot Show Standard Error (stderr)</title>
      <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1588018#M24550</link>
      <description>&lt;P&gt;Yes, I can reproduce the issue and investigate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need stderr output, you can set up a web server following the steps below. This can support &lt;SPAN&gt;application output (stdout and stderr)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-1/install-web-server.html" target="_blank" rel="noopener"&gt;https://www.intel.com/content/www/us/en/docs/vtune-profiler/user-guide/2024-1/install-web-server.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_0-1712737891736.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53589iBE4075BACD5BA7D1/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_0-1712737891736.png" alt="yuzhang3_intel_0-1712737891736.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;VTune web server:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yuzhang3_intel_0-1712740501779.png" style="width: 400px;"&gt;&lt;img src="https://community.intel.com/t5/image/serverpage/image-id/53591iE05070051A17890C/image-size/medium?v=v2&amp;amp;px=400&amp;amp;whitelist-exif-data=Orientation%2CResolution%2COriginalDefaultFinalSize%2CCopyright" role="button" title="yuzhang3_intel_0-1712740501779.png" alt="yuzhang3_intel_0-1712740501779.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 09:15:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1588018#M24550</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-04-10T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re:Intel VTune Profiler's "Application Output" Cannot Show Standard Error (stderr)</title>
      <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1588518#M24559</link>
      <description>&lt;P&gt;Did you try with a web server, if it can work? Thanks.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Apr 2024 02:46:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1588518#M24559</guid>
      <dc:creator>yuzhang3_intel</dc:creator>
      <dc:date>2024-04-12T02:46:17Z</dc:date>
    </item>
    <item>
      <title>Re: Re:Intel VTune Profiler's "Application Output" Cannot Show Standard Error (stderr)</title>
      <link>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1592572#M24631</link>
      <description>&lt;P&gt;I installed VTune on the remote server and started it in Web mode, using the following command:&lt;/P&gt;&lt;LI-CODE lang="bash"&gt;~/intel/oneapi/vtune/2024.1/bin64/vtune-backend --web-port 8080 --enable-server-profiling&lt;/LI-CODE&gt;&lt;P&gt;And yes, I can confirm that Web mode can correctly capture stderr messages.&lt;/P&gt;&lt;P&gt;Thanks for introducing me to VTune's Web mode. It's extremely useful for server development.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Apr 2024 08:54:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Analyzers/Intel-VTune-Profiler-s-quot-Application-Output-quot-Cannot-Show/m-p/1592572#M24631</guid>
      <dc:creator>niconiconi</dc:creator>
      <dc:date>2024-04-25T08:54:38Z</dc:date>
    </item>
  </channel>
</rss>

