Commit Graph
116 Commits
Author SHA1 Message Date
Kunal Pathak c16cecada4 fix no_progress attribute (#57377) 2021-08-13 14:42:20 -07:00
Kunal Pathak 0812322899 Spmi replay pipeline (#56871)
* Add superpmi-replay pipeline file

* Add superpmi-replay-job.yml that downloads collection

* Moved superpmi-replay-job to right location

* make sure to have spmi collection after jit build

* annotate displayName with windows/OSX

* Make osGroup=windows

* Add helixType (if that matters)

* Add some more variables

* skip restore internal tools

* Just use build-jit-job directly

* Hardcode windows.x64.checked

* Add -download_all -download_raw options to superpmi.py

* Seperate 2 jobs

* Fix Upload artifacts

* Fix uploadAsArtifacts

* Fix to uploadAsArtifacts

* comment upload to azure storage temporarily

* Set variables inside superpmi-replay-job

* Entire pipeline

* minor fix

* Add some logging

* Fix the path

* fix file names and partition ids

* add sample download on helix machine

* fix helix-correlation-payload

* Download specific build

* Try to fix correlation payload directory

* Do not run windows x86 for now

* Log directory

* walktree instead of dir

* fix the bug

* Add workitem directory as Payload

* TEMP: Skip downloading collection during setup

* fix core_root

* Make download happen on helix

* Add windows x86

* Use -target_os and pass 1 item to helix

* Add some logging, have different work item ID

* fix the superpmi.log upload

* Fix the log location

- Also include Linux_x64

* one more fix to log_directory

* try to fix download results

* Move the matrix to proj file

* fix superpmi-replay.proj

* Cleanup

* Go back to download specific

* WorkTimeout for 5 hours

* Remove timeoutInMinutes

* fix errors related to logging

* return failed run result

* fix the appending logic

* Remove download-all and download-raw and instead add -no-progres

* do not show download progress, try fixing download file

* TO REVERT: Just try benchmark on windows x64/x86

* Use uploadAsArtifacts in build-jit-job

* Create dummy.txt in workitem directory

* create workitem_directory

* Build clrjit

* fix build-jit-job

* add dependsOn

* print params

* TO REVERT: Just run jitbuild win-x64

* minor

* move under jobParameters

* Cleanup

* review feedback
2021-08-11 22:02:07 +00:00
Johan Lorensson a49108739a [Mono]: Add a verbose jit done event into EventPipe MonoProfiler provider. (#56530)
* Add a verbose jit done event into EventPipe MonoProfiler provider.

In order to get full method info in nettrace it is sometimes needed to
include method load verbose info. This can be done using Microsoft-
Windows-DotNETRuntime provider, but when using that it will also setup
a lot of managed diagnostics classes highly affecting startup profiling.

MonoProfiler provider, Microsoft-DotNETRuntimeMonoProfiler already emits
all needed info for advanced low level diagnostics, but currently lacks
verbose method load data when emitting jit done event.

Commit also adds new versions to JitDone as well as ClassLoaded including
generic type info if available as well as dropping use of ClrInstanceId since
it is not used/needed for events that are new.
2021-08-04 09:38:35 +02:00
Jakob Botsch Nielsen f7e4c26181 Add --debuginfo to superpmi (#55808) 2021-07-19 10:01:44 +02:00
Johan Lorensson 0f5a39df19 [Mono] Add Mono Profiler events into EventPipe. (#55264)
* Add Mono Profiler events into EventPipe.

* Drop callstack on exception_clause profile event.

Needed since instrumentation uses mono_profiler_raise_exception_clause
used without wrapper and that in turn will cause incomplete stacks due
to transitioning into native code without informing unwinder.

* Fix build error.

* Add support to configure MonoVM diagnostics using env variable.

Adding new MONO_DIAGNOSTICS env variable that can include diagnostic
specific configs as well as --diagnostic-ports, meaning that its possible
to use that instead of DOTNET_DiagnosticPorts variable. It also add
variable to set some mono profiler settings needed very early during
startup to get GC alloc as well as exception clause checks.

In order to set needed options early in process, EventPipe component
calls a specific component_init method setting up needed config.

* Fix enable/disable callback registrations based on enable/disable bit mask.

* Add ability to specify callspec for method instrumentation.

Add --diagnostic-mono-profiler-callspec= to accept Mono callspec string.

Split keywords to enable method tracing and instrumentation, enables
ability to start instrumenting (but not emitting events) in one session
and then enable emitting events in later session.

If a callspec is used, instrumentation will be enabled on component init.

* Only init component once when using static component builds.
2021-07-09 21:41:01 +00:00
Bruce Forstall a18b2cbd06 Add -metrics argument to superpmi.py asmdiffs (#54930)
All the passed metrics are passed through to the `--metrics` argument to jit-analyze.

E.g.,
```
superpmi.py asmdiffs -metrics PerfScore
superpmi.py asmdiffs -metrics CodeSize,PerfScore
superpmi.py asmdiffs -metrics CodeSize -metrics PerfScore
superpmi.py asmdiffs -metrics CodeSize,PrologSize -metrics PerfScore
```
2021-06-30 08:23:22 -07:00
Bruce Forstall fd7e92418a Create a summary Markdown file for all asm diffs (#54430)
Create a per-MCH file summary.md file, then accumulate them all into
a single overall summary Markdown file, for use in GitHub comments.
Uses the existing `jit-analyze --md` functionality.

Also, change asm diffs to not report missing data or asm diffs as a
replay failure.

Finally, don't overwrite superpmi.log files (or the new diff_summary.md files):
create new, unique file names for each run.
2021-06-18 12:23:40 -07:00
Bruce Forstall 72a26f921f Update superpmi_setup.py script with more exclusions (#54309)
I noticed a bunch of failures trying to run crossgen2 on these binaries
in one of our collections.

Also, make the checking case-insensitive: I saw that we were failing to
match "corerun.exe" against "CoreRun.exe" that was in the exclusion list.
2021-06-17 14:13:47 -07:00
Juan HoyosandKunal Pathak 86cebb31b1 Infrastructure: correct dependencies and clean helix agent from stray corerun procs (#54094)
* Add dependency on coreclr in monojit/monointerpreter jobs explicitly to solve pipeline issue #53842
* Use Helix Pre/Post hooks to kill linkering corerun instances to work around ARM64 agent issues

Co-authored-by: Kunal Pathak <[email protected]>
2021-06-13 13:54:05 -07:00
Fan Yang 5f170664bf Update buildtools for linux arm64 lane (#53975) 2021-06-10 11:38:21 -04:00
Kunal Pathak a4b3772d1a Remove crossgen from superpmi tools (#53958)
* Remove crossgen SPMI collection

* Remove reference of crossgen from superpmi.py

* some misc crossgen references

* put back deleted things
2021-06-09 17:42:14 -07:00
Bruce Forstall 2dd402dc83 Fix superpmi.py/jitrollingbuild.py to handle large REST results (#53750)
The Azure Storage REST API returns a maximum of 5000 results in
a single query. We have more results in the JIT rolling build set,
so we weren't finding queried git_hash values.

Generalize the query to loop using the "marker" continuation functionality.

We currently have about 800 superpmi collections results, but update
the superpmi.py script similarly for future proofing.

I also changed the query used by jitrollingbuild.py to specify a prefix,
to avoid requiring so many results. Probably should do the same thing for
SuperPMI collections. The downside is the REST api doesn't have a facility
for the prefix to be case-insensitive. I think it's ok to be case-sensitive,
but we'd need to verify that.
2021-06-07 15:00:52 -07:00
Johan Lorensson f18f41b148 Add Execution Checkpoint EventPipe event used to track runtime init on Mono. (#53024) 2021-06-03 12:18:24 +02:00
Johan Lorensson 69241aa2b1 Support PortableThreadPool native event sinks on Mono. (#53500) 2021-06-02 18:09:20 +02:00
Kunal Pathak bc0fda4e9b Rename superpmi tests collection names (#53108)
* Rename tests collection names

- Rename tests.pmi to coreclr_tests.pmi
- Rename tests_libraries.pmi to libraries_tests.pmi

* changes in superpmi.py
2021-05-26 16:58:20 -07:00
Johan Lorensson 5525d0bbb5 Emit JITStarting, MethodLoad, ModuleLoad and AssemblyLoad EventPipe events on Mono. (#53020)
* Add native JIT event into EventPipe.

* Emit module/assembly load native events into EventPipe.

* Emit MethodDCEnd_V1 and MethodILToNativeMap EventPipe events.
2021-05-25 10:32:44 +02:00
Johan Lorensson 542ef8ba78 Add native EventPipe event source generation into Mono build. (#52844)
Adjust existing genEventing.py/genEventPipe.py to work together with Mono C build. Gives Mono ability to use same set of generated event serializers already used in CoreCLR.

Commit adds support for a optional inclusion file when calling eventing scripts, only adding specific events into generated source files. Since Mono won't handle all native events supported by CoreCLR (just a small amount initially) using the inclusion file will dramatically reduce the size of eventpipe static library, if inclusion file is not used, all events will be included (current behaviour).

Commit also switch existing hand written native events currently used in Mono over to the native events generated by the eventing scripts.
2021-05-20 09:08:42 +02:00
Kunal Pathak 1701d13135 Make superpmi.py work for python3.8 (#52778) 2021-05-14 11:08:09 -07:00
e39196ffc9 Fixed Broken Links in Documentation (#50653)
Co-authored-by: Youssef Victor <[email protected]>
Co-authored-by: Marek Safar <[email protected]>
2021-05-10 10:09:08 +02:00
Kunal Pathak f17e018186 Enable superpmi collection for libraries tests (#51507)
* Run SPMI collection on libraries-tests

* Only run for libraries-tests and change GUID

* fix error

* fix the collection name

* fix the timeoutInMinutes

* Download libraries test artifacts

* try to fix the libs+tests artifacts name

* Use artifacts name as is

* Fix the libraries test artifacts name

* Use librares_test.zip

* Modify the filter to unzip all *Tests.dll files

* Revert "Modify the filter to unzip all *Tests.dll files"

This reverts commit b62f7132ec084453495a92a3e336688585366908.

* Try to unzip libraries_zipped

* overwriteExistingFiles=true

* Fix the asset extension

- Also exclude files present in core_root

* fix artifacts name

* remove extra .

* Ignore permission error

* Copy common test files in CORE_ROOT

- And do not copy not *.Tests.dll" for PMI

* Perform collection for all libraries_tests assets

* Add UnicodeEncodeError EH

* Add PermissionError for copy2

* Copy all the test assests to core_root

* Make input_directory readonly

* make ch_mod recursive

* Add option of error_limit to superpmi.py

* Pass -failureLimit flag to parallel mode

* Revert "Only run for libraries-tests and change GUID"

This reverts commit 7f4cdda9cf4f49fc21a354f616a67554f65cd6ea.
2021-04-19 18:34:06 -07:00
Bruce Forstall 98038888bf Fix superpmi.py private store filtering (#50863)
* Fix superpmi.py private store filtering

Given a private store root, we need to filter to just
JIT/EE version, target OS, and target architecture, as we do for
Azure storage.

Previously, all files in the private store would always be considered,
no matter those settings.

* Remove unnecessary `lower()`
2021-04-08 14:58:45 -07:00
Bruce Forstall cd0ea5a840 Simplify superpmi.py -jitoption (#50756)
Remove `-jitoption` from `asmdiffs` and `collect` commands.
asmdiffs has `-base_jit_option` and `-diff_jit_option`.
Collect doesn't need the option, but processing the args does need
to set it to None since collect does a verification replay which
will check if the argument is set.
2021-04-06 10:13:16 -07:00
Bruce Forstall 94bb5d2f5c Support private SuperPMI MCH file stores (#50268)
* Support private SuperPMI MCH file stores

In addition to the default Azure Storage SuperPMI location,
support private data stores via the new `-private_store` argument
to `replay` and `asmdiffs`. Private stores are typically file
system locations, or, on Windows, UNC paths.

There already exists the `-mch_files` argument, which allows you
to use any specified set of MCH files. However, when specifying
`-mch_files`, only those files are used and the normal stores are
ignored.

The private store mechanism is more convenient in some scenarios,
as it treats the specified private stores equivalently to the default
Azure Storage store.

In addition, both private stores and `-mch_files` handle downloading
ZIP files, un-ZIPping, and caching their contents.

Finally, a new top-level command `upload-private` is introduced to
help create private stores by specifying a set of MCH files to
use. It ZIP compresses the files to upload.

* Fix `-base_jit_path`

If `-base_jit_path` is specified on the command line, ensure it is a
full path before using it.
2021-03-31 10:41:10 -07:00
Bruce Forstall a5b829e9c7 Rename the superpmi.py asmdiffs output directory (#50403)
* Rename the superpmi.py asmdiffs output directory

Previously, the directory name was `asm.os.arch.build_flavor`.
Now, use the MCH file name instead. Since the MCH filename of our
collections has the target os/arch/flavor, those components will still
be there (but will be based on the MCH file, not the host; this is
important if you are doing cross-compile asm diffs). It will
also have the MCH base name, such as "benchmarks.run", to help
distinguish different runs. Of course, if there is a conflict with
a previous run, `.1`, `.2`, etc., is appended to the directory name.

Also, add a new, optional `-tag` option to `superpmi.py asmdiffs` to
allow specifying an additional word to prefix the artifacts folder
base name. This might help more easily distinguish different experiments.

So, `superpmi.py asmdiffs -filter benchmarks -tag test2` might give you
dasm files in these directories:
```
c:\runtime\artifacts\spmi\asm.test2.benchmarks.run.windows.x64.checked.3\base
c:\runtime\artifacts\spmi\asm.test2.benchmarks.run.windows.x64.checked.3\diff
```

* Review feedback

Created `create_artifacts_base_name()` function.

Fixed `run_and_log` to display command line of command being
invoked at the specified log level. Currently only affects invoking
`jit-analyze`, which makes the `jit-analyze` command line visible
on the console, not just in the log file.
2021-03-30 15:45:56 -07:00
Bruce Forstall 4520b97dbd Fix superpmi.py setting of environment (#50304)
Especially, fix the setting of environment when generating asm diffs
artifacts.

Before, we were setting the global environment before generating textual
dasm or dump files, and not resetting it. Because we currently loop over
all the MCH files doing (1) `superpmi -a` to determine binary diffs,
then (2) generating textual dasm; after the the environment was set in
(2), if there were further MCH files to process, then the variables would
get picked up in (1). This seemed to work ok, except made the diff process
extremely slow because the baseline and diff JIT were generating textual
dasm for every single MC, which was ignored, then we would re-generate it
for any binary diffs.

Thus, for multiple MCH files, and diffs, things are MUCH faster now.
2021-03-26 16:13:26 -07:00
Kunal Pathak 1a35f1db90 Use SPMI_CACHE_DIRECTORY for sharing mch files across repos (#50298)
* Use SPMI_LOCATION

* Rename to SUPERPMI_CACHE_DIRECTORY
2021-03-26 14:34:13 -07:00
Stephen Toub 184a5b103c Enable CA1052 (static holder types should be static) (#50047)
* Enable CA1052 (static holder types should be static)

* Fix a few additional warnings in 'all configurations'
2021-03-23 10:04:52 -04:00
Sung Yoon Whang 72e2420fd2 Modify EventPipe runtime event generator to emit NULL string correctly (#48879) 2021-03-22 22:56:36 -07:00
Bruce Forstall 25f1800f14 Fix SuperPMI replay flags (#49850)
Before this fix, when doing replay (not asmdiffs) of a set of
MCH files, the `-f` arguments would accumulate, one for every
MCH file run so far.
2021-03-18 23:47:53 -07:00
Andy Ayers 1ba22eb799 Allow jit to disregard PGO; PGO changes for SPMI and MCS (#49551)
* COMPlus_JitDisablePGO will now block the jit from using profile data. Useful
for investigations and (someday) bug triage. Also disable GDV if we're disabling PGO

* `-base_jit_option` and `-diff_jit_option` can be used to pass options to
superpmy.py asmdiffs.

* Fix SPMI file name computation to better handle cases where the directory is
a relative path.

* Enhance `mcs -jitflags` output to describe how many method contexts have
PGO data, and which kinds of data they hold. Useful for validating that an
SPMI collection done via dynamic PGO has actually collected an interesting
set of jit requests.
2021-03-17 10:58:08 -07:00
Bruce Forstall 98527b92a4 Remove SuperPMI upload of clrjit.dll (#49565)
We never used the uploaded JITs, and we have a JIT rolling build
that gives us a better set of DLLs.
2021-03-12 18:24:24 -08:00
Bruce Forstall 2129ae9c72 superpmi.py: Add support for Azure CLI authentication (#49272)
Azure CLI authentication is currently disabled (the current
unauthenticated mode will be used).

To use SuperPMI collections and JIT rolling builds after Azure
authentication is enabled, you will need to install the Azure CLI from:

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

and then log in using `az login` before running any superpmi.py
commands.
2021-03-11 09:00:05 -08:00
Kunal Pathak 9d94811aa7 Superpmi collection pipeline improvements (#49385)
* Do not pass --use-zapdisable to dotnet

But instead pass to individual CoreRun.exe that is launched during benchmark run. That way we do not slow down the launch of dotnet.exe process.

* Fail superpmi collection pipeline if there was no valid .mch files were found to merge

* Upload merged .mch files as zipped artifacts

TODO: Upload the superpmi.log from all the partition runs

* TEMP: New Jit guid

- Add new JIT guid so we don't overwrite the existing .mch files
- Disable all the runs except benchmarks

* add trailing path sep

* Upload superpmi.logs separately

* Use PublishPipelineArtifacts instead of upload artifacts

* properly pass zapdisable to CoreRun.exe

* Revert "TEMP: New Jit guid"

This reverts commit e89ef69625e4e57bb622fc35ff66d82f14b34285.

* Remove CoreClrTestBuildHost from benchmark run

* fix --envVars for benchmarks run

* add missing space

* temporary disable other runs

* Revert "temporary disable other runs"

This reverts commit 2926d1f582061eee6c7852046982ffb5107887b3.
2021-03-10 09:48:41 -08:00
Kunal Pathak 24b02289c7 Enregister EH var that are single def (#47307)
* Enable EhWriteThry for SingleDef

* If EhWriteThru is enabled, DoNotEnregister if variable is not singleDef

* Revert code in ExecutionContext.RunInternal

* Revert code in AsyncMethodBuildCore.Start()

* Make sure we do not reset lvSingleDef

* Consitent display of frame offset

misc change in superpmi.py

* Use lvEHWriteThruCandidate

* Do not enregister EH Var that has single use

* do not enregister simdtype

* add missing comments

* jit format

* revert an unintended change

* jit format

* Add missing comments
2021-03-09 13:58:16 -08:00
Andy AyersandKunal Pathak 5dacf1e3fd Make jitoption a common option in superpmi.py (#48921)
Also change from `--jitoption` to `-jitoption` per convention where
options taking an arg have just one dash.

Fixes #48919.

Also add a missing `_` to the download name.

Co-authored-by: Kunal Pathak <[email protected]>
2021-03-01 21:48:58 -08:00
Viktor Hofer e52568de3d Address remaning master mentions that should be main (#48904)
Did a second search of master in the repo since all the M2M changes went
in and found some remaining places that weren't included in the
previous change.
2021-03-01 13:08:32 +01:00
Viktor Hofer 3553284bea Rename mention to master branch to main (#48824) 2021-03-01 10:09:31 +01:00
Egor Chesakov 5b98491ee7 Don't set COMPlus_JitRequired=1 during spmi-asmdiffs replay in src/coreclr/scripts/superpmi.py (#48835) 2021-02-26 14:51:44 -08:00
Bruce Forstall da801fcf2a Improve SuperPMI download progress (#48779)
Refactor download into a function.

Add newline after download is done.

Allow baseline JIT download to show it is being downloaded
(it was suppressed before).
2021-02-26 00:05:32 -08:00
Andy Ayers b60a80d39d allow passing jit option to superpmi.py replay (#48738) 2021-02-25 09:30:49 -08:00
Andy Ayers ecfcdfd776 Support SPMI collection of tiered compilation runs, fix utf8 issues (#48665)
Add new flag `--tiered_compilation` to enable collection of runs with tiered
compilation enabled (by not setting `COMPlus_TieredCompilation=0`).

Note `COMPlus_TieredCompilation` has no impact on prejitting or on replay.

Also be more tolerant of utf-8 encoding issues, in case we see asserts in
methods or classes with funny names.
2021-02-23 17:47:22 -08:00
Egor Bogatov 2c8f2dc40c Add progressbar to SuperPMI.py script (#48649) 2021-02-23 23:47:32 +03:00
Bruce Forstall cef3ef1272 Display more SuperPMI details in log file (#48448)
In particular, display missing info asserts, which give some hint
about what change might have caused the missing info to be requested.
2021-02-18 11:13:37 -08:00
Bruce Forstall 20bba795eb Run dotnet.sh/cmd script before running dotnet restore (#48375)
* Fix SuperPMI Linux collections

1. Run dotnet for jitutils with jitutils dir as the current working dir.
2. Run dotnet.sh/cmd script before running bootstrap (and `dotnet restore`)
to ensure `.dotnet` directory exists.
2021-02-18 11:10:27 -08:00
Sergey Andreenko 1df2bc9018 SPMI fixes for missing info. (#48360)
* SPMI hacks/fixes.

* review response.
2021-02-17 00:10:33 -08:00
Kunal Pathak d4a9b6b501 Superpmi on Microbenchmarks (#47900)
* Superpmi on Microbenchmarks

* Fix the mch file path name

* distribute the benchmarks in 30 partitions

* Set input directory for benchmarks

* Some fixes to superpmi_benchmarks

Also update the GUID so we don't overwrite the existing collections.

* fix the name of partition_index and partition_count

* Point the core_root path to the superpmi script

* fix python to invoke for setup

* Add verbosity and include all benchmarks

* Fix the benchmarks invocation

* use benchmarks_ci.py script

* run all benchmarks

* fix the performance source code path

* see why dotnet install fails

* Comment all jobs except benchmarks

* update the right fork

* Switch back to doing installing dotnet on azure machine

* Put dotnet in script

* fix dumpMap, revert change in superpmi.py

* Produce artifacts in temp folder

- Disable mcs -strip for now
- Pass the JitName variable

* Experimental: Exit on failure

* Revert "Produce artifacts in temp folder"

This reverts commit afdfbd4b03a684d780ef06f644dba0dcf0621438.

* Use JitName

* Use workitem folder instead of correlation

* fix typo in WorkItemDirectory

* Set the payload directory

* print error message before exiting

* fix some linux issues

* Make dotnet executable

* resolve merge conflicts

* fix typo from merge conflict

* add logging around chmod

* fix the is_windows condition

* cleanup and disable linux arm/arm64

* remove the unwanted parameter
2021-02-12 16:43:34 -08:00
Sung Yoon Whang ba3681375c Enable Portable ThreadPool events to be written using NativeRuntimeEventSource (#47829)
* match up the GUID

* why is this returning nothing

* Make ThreadPool emit events via NativeRuntimeEventSource

* found error...

* hack around having duplicate events generated

* make portable threadpool fire events through nativeruntimeeventsource

* make the initializer live in correct namespace

* EventListener tests are passing now

* make native QCall endpoints that sink into LTTng

* send events through XplatEventLogger sink

* Fix merge error

* double registration

* fix callback not getting handled when lttng is enabled

* cleanup 1

* rename file

* remove stale comments

* remove stale comment

* undo useless change

* fix broken EventListener

* apply code review feedback

* fix windows build

* fix incorrect qcall

* fix up ifdefs for Windows builds

* fix ifdef

* put back removed code

* tests pass now

* Fix NativeRuntimeEventSource not getting enabled for lttng

* Add some more comments

* Add comment in generated code

* fix mono build

* PR feedback

* fix typo

* code review feedback
2021-02-10 16:21:39 -08:00
Bruce Forstall ed2c92f19f Make superpmi collection with command more convenient (#48092)
* Make superpmi collection with command more convenient

Allow a command to be searched for on the PATH.

* Allow searching core_root for tool

Fix help string
2021-02-10 11:00:46 -08:00
Bruce Forstall 4bc032eb8e Add crossgen2 automated SuperPMI collection of Core_Root libraries (#47818)
* Add crossgen2 automated SuperPMI collection of Core_Root libraries

Linux is excluded; there are uninvestigated crashes doing crossgen2 Linux collections.

I added logic to copy the runtime ".dotnet" directory to Helix machines to use as the
driver for crossgen2, but that doesn't work for cross-platform scenarios (e.g., Windows
x64 .dotnet, x86 Core_Root), so it's commented out for now and the same-Core_Root corerun.exe
is used as the crossgen2 driver.

Add `-collection_type` argument to superpmi-setup.py

Allow copying of .json files to Helix; needed by crossgen2.

Changed superpmi pipeline to run with DEBUG level logging from superpmi.py so it's
easier to see what happened when looking at Helix logs (without having to find and separately
download the superpmi.log file).

Changed superpmi.py to write stdout/stderr files to log on failure, so we can see why
crossgen2 failed.

Fix creation of log file directories when `-log_file` argument specified

Excluded many more native files from superpmi collection setup.

Fixes #47541

Extra:
1. If `-temp_dir` is specified to superpmi.py, normalize it to
an absolute path.
2. Add a superpmi.py collect `-exclude` option to avoid collecting
assemblies known to fail (and cause pop-up failures: see #47552).
(This isn't used by the automated collection, but is generally useful.)
3. Stop logging too-verbose message about CORINFO_SIG_INST handle
array illegal values, since it's "by design" for crossgen2
4. Force lower-casing of JIT-EE version string, for consistency.
2021-02-06 12:45:46 -08:00
Bruce Forstall 140b959111 Re-enable crossgen2 SPMI collection with EnableExtraSuperPmiQueries=1 (#47655)
Remove workaround after fixed with #47614
2021-01-29 16:35:08 -08:00