Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[netcore] Improve Jitdiff tool #17960

Merged
merged 1 commit into from Nov 29, 2019
Merged

[netcore] Improve Jitdiff tool #17960

merged 1 commit into from Nov 29, 2019

Conversation

EgorBo
Copy link
Member

@EgorBo EgorBo commented Nov 28, 2019

use objdump arguments to reduce verbosity (no raw bytes, etc) and make the dasm more diff-friendly.
On Linux all functions have a random prefix (address) - replace it with 0xD1FFAB1E constant). On macOS it's fine by default.

Also, allow to generate diffs for a single assembly via dump-asm-lib rule.

@akoeplinger akoeplinger merged commit 9a18b6f into mono:master Nov 29, 2019
@@ -116,7 +117,7 @@ static bool TryParseFunctionName (string str, out string name)
// depends on objdump, let's use the whole line as a name if it ends with `:`
if (str.EndsWith (':'))
{
name = str;
name = Regex.Replace(str, @"(?i)\b([a-f0-9]+){8,16}\b", m => "0xD1FFAB1E");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe just replace with empty?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we can, I just copied the coreclr's jitutills behavior (they replace all addresses with this const)

ManickaP pushed a commit to ManickaP/runtime that referenced this pull request Jan 20, 2020
use `objdump` arguments to reduce verbosity (no raw bytes, etc) and make the dasm more diff-friendly.
On Linux all functions have a random prefix (address) - replace it with `0xD1FFAB1E` constant). On macOS it's fine by default.

Also, allow to generate diffs for a single assembly via `dump-asm-lib` rule.

Commit migrated from mono/mono@9a18b6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants