Skip to content

WIP: Port EventPipeBuffer, EventPipeBufferList, EventPipeBufferManager to Mono.#19958

Merged
lateralusX merged 1 commit intomono:masterfrom
monojenkins:sync-pr-37756-from-runtime
Jun 30, 2020
Merged

WIP: Port EventPipeBuffer, EventPipeBufferList, EventPipeBufferManager to Mono.#19958
lateralusX merged 1 commit intomono:masterfrom
monojenkins:sync-pr-37756-from-runtime

Conversation

@monojenkins
Copy link
Contributor

!! This PR is a copy of dotnet/runtime#37756, please do not edit or review it in this repo !!
Do not automatically approve this PR:

* Consider how the changes affect configurations in this repo,
* Check effects on files that are not mirrored,
* Identify test cases that may be needed in this repo.

!! Merge the PR only after the original PR is merged !!



Continuation of dotnet/runtime#34600, adding BufferManager into the library including unit tests, merging source files and additional library restructuring.

  • Port EventPipeBuffer.
  • Port EventPipeBufferList.
  • Port EventPipeManager.
  • Merge internals source files. Changed GETTER_SETTER to only mandate use of inlined functions when calling betweeen source files for different types. Upgraded all use within each source file for direct struct access.
  • Changed function entry error checkin strategy. Only apply active checks on outer library API, ep.h, and use EP_ASSERT for all other functions.
  • Dropped requires_lock_held in function naming, switch to comment in header or in forward declare for functions that validates that lock is held.
  • Removed currently unused GETTER/SETTERS.
  • Moved more comments into sources from corresponding CoreCLR EventPipe sources.
  • Add EventPipeBuffer/EventPipeBufferManager unit tests.

Next step after this PR will be to enable a file session during runtime and add more unit tests and then start getting diagnostic server component over to Mono.

@monojenkins monojenkins force-pushed the sync-pr-37756-from-runtime branch 5 times, most recently from 862becd to bedda84 Compare June 18, 2020 12:57
@monojenkins monojenkins force-pushed the sync-pr-37756-from-runtime branch from bedda84 to a614d03 Compare June 19, 2020 10:21
@monojenkins monojenkins force-pushed the sync-pr-37756-from-runtime branch from a614d03 to e2d111f Compare June 29, 2020 11:10
@lateralusX lateralusX marked this pull request as ready for review June 29, 2020 11:22
@monojenkins monojenkins force-pushed the sync-pr-37756-from-runtime branch from e2d111f to 3443cf5 Compare June 29, 2020 16:17
…Mono.

Continuation of dotnet/runtime#34600, adding BufferManager into the library including unit tests, merging source files and additional library restructuring.

- Port EventPipeBuffer.
- Port EventPipeBufferList.
- Port EventPipeManager.
- Merge internals source files. Changed GETTER_SETTER to only mandate use of inlined functions when calling betweeen source files for different types. Upgraded all use within each source file for direct struct access.
- Changed function entry error checkin strategy. Only apply active checks on outer library API, ep.h, and use EP_ASSERT for all other functions.
- Dropped requires_lock_held in function naming, switch to comment in header or in forward declare for functions that validates that lock is held.
- Removed currently unused GETTER/SETTERS.
- Moved more comments into sources from corresponding CoreCLR EventPipe sources.
- Add EventPipeBuffer/EventPipeBufferManager unit tests.

Next step after this PR will be to enable a file session during runtime and add more unit tests and then start getting diagnostic server component over to Mono.
@monojenkins monojenkins force-pushed the sync-pr-37756-from-runtime branch from 3443cf5 to 68e9066 Compare June 29, 2020 20:32
@lateralusX
Copy link
Member

WASM debugger failure is known and happens on all PR's.

@lateralusX lateralusX merged commit ffb6ee3 into mono:master Jun 30, 2020
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.

3 participants