<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/56700>56700</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            How to solve the error of not having the same binary to convert profile to BOLT format?
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          ZahraHeydari95
      </td>
    </tr>
</table>

<pre>
    I profiled from the java renaissance benchmark with the following instructions:
```
 perf record -e cycles:u -j any,u -o ../results/finagle-chirper/perf.data --  ./../../../jdk/build/linux-x86_64-server-release/images/jdk/bin/java -jar '../renaissance-gpl-0.14.1.jar' finagle-chirper

```

And it was done without any problems.

Now when I want to convert it to BOLT format, it gives the following error and they say that my binary is not the same as the binary that I profiled.

```
./../../../build/bin/perf2bolt -p ../results/finagle-chirper/perf.data -o ../results/finagle-chirper/perf.fdata  ./../../../jdk/build/linux-x86_64-server-release/jdk/bin/java
BOLT-INFO: shared object or position-independent executable detected
PERF2BOLT: Starting data aggregation job for ../results/finagle-chirper/perf.data
PERF2BOLT: spawning perf job to read branch events
PERF2BOLT: spawning perf job to read mem events
PERF2BOLT: spawning perf job to read process events
PERF2BOLT: spawning perf job to read task events
BOLT-INFO: Target architecture: x86_64
BOLT-INFO: BOLT version: b95cca03cd7b751e977fee808b7e84ffffec116d
BOLT-INFO: first alloc address is 0x0
BOLT-INFO: creating new program header table at address 0x400000, offset 0x400000
BOLT-INFO: enabling relocation mode
BOLT-INFO: enabling strict relocation mode for aggregation purposes
BOLT-INFO: pre-processing profile using perf data aggregator
BOLT-INFO: binary build-id is:     b24f4c8e508d66a66f03d9a0c0505db006ef3515
PERF2BOLT: spawning perf job to read buildid list
PERF2BOLT-ERROR: failed to match build-id from perf output. This indicates the input binary supplied for data aggregation is not the same recorded by perf when collecting profiling data, or there were no samples recorded for the binary. Use -ignore-build-id option to override.
```

What should I do now?

Please help me.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJylVt-PozgM_mvoiwVKaYHOQx9mb7fakU47q7k9nXQvp5AYSAcISkI7_e_PCf0x061GN3uoopDYju3vs02p5WH9AIPRlWpRQmV0B65B2PIdB4M9V9byXiCU2Ium4-YZ9so1QabSbav3qq9B9daZUTilexst7iP2OWL3Uc6Ov_AKA5qKTAptJMQI4iBa9NIjxFvg_SFKf6NHDUkSpRuDdmydpadK9bxuMRaNMmSCVryhRHLHIY4BvHTy9raVz3QvR9VK-m9VP77EL6v8n3wZWzQ7NLHBFrlF2lUdr9FelFTvn3308ZYbiNLi6M85FXE9tDFL5stknpAIScC1j1P8t7Iw3e97CcrBnluQuseQUj06nwWPRdliZ5PXCt_0HvYN9vBASr0Dp0HoniJx3g69fXr8_QcBYjruKI9-sVY7tFc4oTHa0CnSrx_A8gM9cAfdAShwbg6gLPTaBTXLOwQ-mTjuBuELXZJ3Ar0BywmQKccexbTUrYN4-BDm_5UhVRD_v_y4psUUnU93_PBt80j8BdtwQ7Wjyy0KB5TgQVvlayFWvcQB6UaQ4QuK0XHCFiQ6kkQ52fr-5WmTeoPe1h-OG-ehCs7zujZYc28Ltrr0AH8gVTfM24Hve28-FKM3SdwxyCWUhrjdAO7IV_shzQ67X1EjEgm09ldUHbfPb_TewPGDmxqplgylxOd5NOiXJ4BvyIfSIdAtZdm_l3eZEJwthCzKIpvjXVFUiCu2KgtcLSu6UMznubxhqlLG0slUbgK4lMbHRxXFXtgNYUGxBKh73Pts1IZ30FB8aGDiCRXbyQp7WTJ_-eLWVWUpwPPSz6apWZWtN0081mLiT6clvidKHVwRfa80AuVe03AYDdEbbyV-MBgfUQ2wTV0CRnsG8Q2ptblh49hoQm3GirqknxDgrzJdVkuxwoytZJ7zPK_YQt5xJljGMlkylmO1yObZx1jvz6FjWmXdlWL85enp8SmgysNsJB3qrlQjZ-fCtAw2qXkPo0vgR0NwU9UrSuGx-6qedk5x2XE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