Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Generate map files for symbol resolution for Linux native images on PerfView #4068

Merged
merged 1 commit into from
Apr 13, 2016
Merged

Conversation

Lucrecious
Copy link

We are trying to enable performance investigations for Linux on Windows through PerfView.

Part of this plan requires the ability to map unknown symbols to their resolved symbols from the running program's native images. We do this by having the CoreCLR generate perfinfo-%d.map files (where %d is the running process' ID). perfinfo-%.map files that contain all the dlls loaded for the specific process and this helps us generate map files with symbol mappings for all managed code dlls.

@dnfclas
Copy link

dnfclas commented Apr 4, 2016

Hi @Lucrecious, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla2.dotnetfoundation.org.

TTYL, DNFBOT;

@dnfclas
Copy link

dnfclas commented Apr 4, 2016

@Lucrecious, Thanks for signing the contribution license agreement so quickly! Actual humans will now validate the agreement and then evaluate the PR.

Thanks, DNFBOT;

@Lucrecious
Copy link
Author

@brianrob Hey, could you review this?

}
}

// Log an IL image load to the map.
Copy link
Member

Choose a reason for hiding this comment

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

Please remove IL from the comment, as this can be any managed image (IL, NGEN, R2R).

@brianrob
Copy link
Member

brianrob commented Apr 4, 2016

LGTM. Please also squash your commits.

@Lucrecious
Copy link
Author

@brianrob I think the commits have been squashed correctly, you can look through the changed files to make sure :)

LIMITED_METHOD_CONTRACT;

WCHAR tempPath[MAX_LONGPATH+1];
if (!GetTempPathW(MAX_LONGPATH, tempPath))
Copy link
Member

Choose a reason for hiding this comment

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

We have recently tried to erradicate all fixed size buffers from the codebase. Please use WszGetTempPath with SString parameter instead.

Copy link
Author

Choose a reason for hiding this comment

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

@janvorli Hey, I fixed this in the latest iteration! Thanks.

@brianrob brianrob merged commit 0ec739e into dotnet:master Apr 13, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Generate map files for symbol resolution for Linux native images on PerfView

Commit migrated from dotnet/coreclr@0ec739e
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants