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

i#140 pcprof: add client pc sampling support #2883

Merged
merged 1 commit into from
Mar 15, 2018

Conversation

derekbruening
Copy link
Contributor

Added dr_where_am_i() to better support client self-profiling via
sampling. This also provides the fragment tag, by refactoring
the pcprofile code into a new helper fcache_refine_whereami().

Renamed the whereami types to better avoid name conflicts:
s/WHERE_xxx/DR_WHERE_xxx/ and s/where_am_i_t/dr_where_am_i_t/.
Exported the dr_where_am_i_t enum.

Fixed a bug where an uninitialized mcontext was passed to a
client timer callback: we only filled in the mcontext for a
DR-internal callback.

Added a test of client sampling to client.timer

Issue: #140

Added dr_where_am_i() to better support client self-profiling via
sampling.  This also provides the fragment tag, by refactoring
the pcprofile code into a new helper fcache_refine_whereami().

Renamed the whereami types to better avoid name conflicts:
s/WHERE_xxx/DR_WHERE_xxx/ and s/where_am_i_t/dr_where_am_i_t/.
Exported the dr_where_am_i_t enum.

Fixed a bug where an uninitialized mcontext was passed to a
client timer callback: we only filled in the mcontext for a
DR-internal callback.

Added a test of client sampling to client.timer

Issue: #140
@derekbruening
Copy link
Contributor Author

A64 is code_api|sample.inscount.prof-pcs.cleancall again: #2162

@derekbruening derekbruening merged commit ce3a9f4 into master Mar 15, 2018
@derekbruening derekbruening deleted the i140-client-prof-pcs branch March 15, 2018 22:02
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.

1 participant