<html>
    <head>
      <base href="http://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:douglas_yung@playstation.sony.com" title="Douglas Yung <douglas_yung@playstation.sony.com>"> <span class="fn">Douglas Yung</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Test failing because cycleFrequency unable to determine CPU frequency for TSC accounting"
   href="http://bugs.llvm.org/show_bug.cgi?id=32620">bug 32620</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>FIXED
           </td>
           <td>---
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>RESOLVED
           </td>
           <td>REOPENED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Test failing because cycleFrequency unable to determine CPU frequency for TSC accounting"
   href="http://bugs.llvm.org/show_bug.cgi?id=32620#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_REOPENED "
   title="REOPENED - Test failing because cycleFrequency unable to determine CPU frequency for TSC accounting"
   href="http://bugs.llvm.org/show_bug.cgi?id=32620">bug 32620</a>
              from <span class="vcard"><a class="email" href="mailto:douglas_yung@playstation.sony.com" title="Douglas Yung <douglas_yung@playstation.sony.com>"> <span class="fn">Douglas Yung</span></a>
</span></b>
        <pre>So it turns out my fix didn't solve the problem. Digging deeper into the test
machine, it turns out that the machine DOES support rdtscp, however, it is
unable to determine the CPU frequency, so that function returns 0, causing the
test to fail.

I tried to implement the frequency detection that Dean mentioned in <a href="show_bug.cgi?id=32620#c3">comment 3</a>,
and I have something that kind of works, but needs to be cleaned up, but my
concern is that it may only work for Intel processors. As far as I can tell,
AMD does not include the processor frequency in their processor brand string,
so that method would not work. Unfortunately I don't have any AMD linux
machines in my office that I can check with either.

But possibly another work-around might be to use the emulated TSC if either
rdtscp support is not present, or if the CPU frequency cannot be determined. I
think that should solve the problem I am seeing on our test machine here.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>