<?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 Building PCM will be one in Software Tuning, Performance Optimization &amp; Platform Monitoring</title>
    <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040058#M4557</link>
    <description>&lt;P&gt;Building PCM will be one thing but then running it is another. OSX doesn't set the CR4.PCE bits to enable reading the PCM registers with RDPMC in user space.&lt;/P&gt;</description>
    <pubDate>Sat, 25 Apr 2015 23:03:18 GMT</pubDate>
    <dc:creator>Chris_S_3</dc:creator>
    <dc:date>2015-04-25T23:03:18Z</dc:date>
    <item>
      <title>Building intel pcm on Mac</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040054#M4553</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;following errors when I build intel pcm 2.7 on my Mac with sdk 10.10.&lt;/P&gt;

&lt;P class="p1"&gt;In file included from /opt/pcm_neu/intel-pcm/src/MacMSRDriver/PcmMsr/PcmMsrClient.cpp:15:&lt;/P&gt;

&lt;P class="p1"&gt;In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLib.h:48:&lt;/P&gt;

&lt;P class="p1"&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLocks.h:130:64: &lt;STRONG&gt;error: expected function body after function declarator&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&gt;int &amp;nbsp; &amp;nbsp; IOLockSleep( IOLock * lock, void *event, UInt32 interType) __DARWIN14_ALIAS(IOLockSleep);&lt;/P&gt;

&lt;P class="p1"&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; &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;/P&gt;

&lt;P class="p1"&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLocks.h:133:49: &lt;STRONG&gt;error: expected function body after function declarator&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; AbsoluteTime deadline, UInt32 interType) __DARWIN14_ALIAS(IOLockSleepDeadline);&lt;/P&gt;

&lt;P class="p1"&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; &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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;/P&gt;

&lt;P class="p1"&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLocks.h:135:63: &lt;STRONG&gt;error: expected function body after function declarator&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&gt;void&amp;nbsp; &amp;nbsp; IOLockWakeup(IOLock * lock, void *event, bool oneThread) __DARWIN14_ALIAS(IOLockWakeup);&lt;/P&gt;

&lt;P class="p1"&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; &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;/P&gt;

&lt;P class="p1"&gt;In file included from /opt/pcm_neu/intel-pcm/src/MacMSRDriver/PcmMsr/PcmMsrClient.cpp:15:&lt;/P&gt;

&lt;P class="p1"&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLib.h:327:6: &lt;STRONG&gt;error: conflicting types for 'Debugger'&lt;/STRONG&gt;&lt;/P&gt;

&lt;P class="p1"&gt;void Debugger(const char * reason);&lt;/P&gt;

&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; ^&lt;/P&gt;

&lt;P class="p1"&gt;In file included from /opt/pcm_neu/intel-pcm/src/MacMSRDriver/PcmMsr/PcmMsrClient.cpp:15:&lt;/P&gt;

&lt;P class="p1"&gt;In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOLib.h:47:&lt;/P&gt;

&lt;P class="p1"&gt;In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Kernel.framework/Headers/IOKit/IOTypes.h:55:&lt;/P&gt;

&lt;P class="p1"&gt;In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libkern/OSTypes.h:29:&lt;/P&gt;

&lt;P class="p1"&gt;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/MacTypes.h:708:1: note: previous declaration is here&lt;/P&gt;

&lt;P class="p1"&gt;Debugger(void)&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; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_8, __IPHONE_NA, __IPHONE_NA);&lt;/P&gt;

&lt;P class="p1"&gt;^&lt;/P&gt;

&lt;P class="p1"&gt;/opt/pcm_neu/intel-pcm/src/MacMSRDriver/PcmMsr/PcmMsrClient.cpp:172:38: warning: implicit conversion loses integer precision: 'unsigned long' to 'uint32_t' (aka 'unsigned int') [-Wshorten-64-to-32]&lt;/P&gt;

&lt;P class="p1"&gt;&amp;nbsp; &amp;nbsp; uint32_t num_cores = output_size / sizeof(topologyEntry);&lt;/P&gt;

&lt;P class="p1"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ~~~~~~~~~ &amp;nbsp; ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;

&lt;P class="p1"&gt;1 warning and 4 errors generated.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 14:03:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040054#M4553</guid>
      <dc:creator>Grischa_J_</dc:creator>
      <dc:date>2015-04-24T14:03:43Z</dc:date>
    </item>
    <item>
      <title>Hello Grischa,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040055#M4554</link>
      <description>&lt;P&gt;Hello Grischa,&lt;/P&gt;

&lt;P&gt;Here are some workarounds. I'm not a Mac expert and generally quit looking for the 'right' answer after i get something that works.&lt;/P&gt;

&lt;P&gt;For the 'expected function body' error you can try 1) commenting out the "#include &amp;lt;IOKit/IOKitLib.h&amp;gt;" line or 2) adding the following two lines before the include:&lt;/P&gt;

&lt;P&gt;#define&amp;nbsp;&amp;nbsp; &amp;nbsp;__DARWIN_SUF_DARWIN14&amp;nbsp;&amp;nbsp; &amp;nbsp;"_darwin14"&lt;BR /&gt;
	#define&amp;nbsp;&amp;nbsp; &amp;nbsp;__DARWIN14_ALIAS(sym)&amp;nbsp;&amp;nbsp; &amp;nbsp;__asm("_" __STRING(sym) __DARWIN_SUF_DARWIN14)&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	For the 'Debugger()' error you can try: A) finding the reference to /usr/include in the PcmMsr.xcodeproj settings... I hate xcode and can't find it.&lt;/P&gt;

&lt;P&gt;or you can do B) get out of xcode and edit PcmMsr.xcodeproj/project.pbxproj and change (in two different places):&lt;/P&gt;

&lt;P&gt;"HEADER_SEARCH_PATHS[arch=*]" = /usr/include;&lt;/P&gt;

&lt;P&gt;to:&lt;/P&gt;

&lt;P&gt;/*"HEADER_SEARCH_PATHS[arch=*]" = /usr/include;*/&lt;/P&gt;

&lt;P&gt;Now it should build... at least it worked for me...&lt;BR /&gt;
	Pat&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2015 15:23:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040055#M4554</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-04-24T15:23:56Z</dc:date>
    </item>
    <item>
      <title>Hello Patrick,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040056#M4555</link>
      <description>&lt;P&gt;Hello Patrick,&lt;/P&gt;

&lt;P&gt;this worked for me. Maybe you want to change these settings to the repository? Additional I had some problems withe code signing on yosemite (10.10). This helped me out:&amp;nbsp;http://stackoverflow.com/questions/26671885/codesigned-kext-but-why-not-load-in-yosemite10-10&lt;/P&gt;

&lt;P&gt;A folder in /usr/include/ needs to be created if not existing.&lt;/P&gt;

&lt;P&gt;cheers&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Grischa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2015 13:21:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040056#M4555</guid>
      <dc:creator>Grischa_J_</dc:creator>
      <dc:date>2015-04-25T13:21:56Z</dc:date>
    </item>
    <item>
      <title>Glad it worked.</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040057#M4556</link>
      <description>&lt;P&gt;Glad it worked.&lt;/P&gt;

&lt;P&gt;For option 1) and 2), which worked for you? Similarly for A) and B) which worked? If A) worked, where in xcode is the reference to /usr/include?&lt;/P&gt;

&lt;P&gt;Thanks, Pat&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2015 13:47:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040057#M4556</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-04-25T13:47:08Z</dc:date>
    </item>
    <item>
      <title>Building PCM will be one</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040058#M4557</link>
      <description>&lt;P&gt;Building PCM will be one thing but then running it is another. OSX doesn't set the CR4.PCE bits to enable reading the PCM registers with RDPMC in user space.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2015 23:03:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040058#M4557</guid>
      <dc:creator>Chris_S_3</dc:creator>
      <dc:date>2015-04-25T23:03:18Z</dc:date>
    </item>
    <item>
      <title>I don't know about setting</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040059#M4558</link>
      <description>&lt;P&gt;I don't know about setting CR4... but PCM runs fine for me... after another couple of changes below.&lt;/P&gt;

&lt;P&gt;I downloaded the current version (which prints a message PCM v2.8). I'm running Mac OS X 10.10.3, xcode 6.3.1, LLVM ver 6.1.0. I had to change the build settings in MacMSRDriver/PcmMsr.xcodeproj.&lt;/P&gt;

&lt;P&gt;My system is an ivy bridge based MacBook Pro.&lt;/P&gt;

&lt;P&gt;I also had to comment out the call to freeRMID() in the PCM::cleanup() routine in cpucounters.cpp.&lt;/P&gt;

&lt;P&gt;If freeRMID() is not commented out then my Mac crashes when I hit control-C while running pcm.x. I believe that the next version of PCM will avoid calling freeRMID() on systems which don't have the RMID MSRs.&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2015 02:00:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040059#M4558</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-04-26T02:00:45Z</dc:date>
    </item>
    <item>
      <title>Sorry. I hit send too quickly</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040060#M4559</link>
      <description>&lt;P&gt;Sorry. I hit send too quickly. The line above in my reply "I had to change the build settings in MacMSRDriver/PcmMsr.xcodeproj" should say "I had to change the build settings in MacMSRDriver/PcmMsr.xcodeproj to say the Architectures Based SDK was OS X 10.9". The default Base SDK was 10.8 (I think) which I don't have installed (and I don't know how to get SDK 10.8).&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Sun, 26 Apr 2015 02:39:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040060#M4559</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-04-26T02:39:37Z</dc:date>
    </item>
    <item>
      <title>Hi Pat,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040061#M4560</link>
      <description>&lt;P&gt;Hi Pat,&lt;/P&gt;

&lt;P&gt;2) worked for me. I didn't tried 1). Is it some how possible to support Sandy Bridge?&lt;/P&gt;

&lt;P&gt;&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;Grischa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 07:47:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040061#M4560</guid>
      <dc:creator>Grischa_J_</dc:creator>
      <dc:date>2015-04-27T07:47:13Z</dc:date>
    </item>
    <item>
      <title>Hello Grischa,</title>
      <link>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040062#M4561</link>
      <description>&lt;P&gt;Hello Grischa,&lt;/P&gt;

&lt;P&gt;I believe PCM does support Sandy bridge. Are you getting an error message? Can you redirect the output to a file and attach the file?&lt;/P&gt;

&lt;P&gt;Pat&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2015 12:33:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Tuning-Performance/Building-intel-pcm-on-Mac/m-p/1040062#M4561</guid>
      <dc:creator>Patrick_F_Intel1</dc:creator>
      <dc:date>2015-04-27T12:33:07Z</dc:date>
    </item>
  </channel>
</rss>

