Skip to content

[oslog-overlay-fixes] 3.1 backport #7101

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

Merged
merged 3 commits into from
Jan 27, 2017

Conversation

mwwa
Copy link
Contributor

@mwwa mwwa commented Jan 27, 2017

Fixes for oslog's overlay implementation that are already present in swift-4.0-branch that need to be backported to 3.1.

<rdar://problem/28147363> <rdar://problem/28908210>
<rdar://problem/29121938> <rdar://problem/28763393>
<rdar://problem/28961322> <rdar://problem/29195869>

mwwa added 3 commits January 27, 2017 10:50
…yout issues.

Address a whole slew of issues that resulted in packing bad
compiler-like structures that are passed to libtrace. Along with some
fixes with the format string parsing, this fixes several major bugs when
trying to use `os_log` from Swift.

Addresses radars:
<rdar://problem/28147363> [overlay] public and private per parameter settings do not work in Swift on device
<rdar://problem/28908210> BLOCKED: Add support for ErrnoKind in Libtrace to support %m
<rdar://problem/29121938> os_log with no variables gives "corrupted"
<rdar://problem/28763393> Floating-point values logged via os_log from Swift are wrong when viewed in Console app
<rdar://problem/28961322> `%s` produces no output
Adopt libtrace os_log_pack in order to more accurately provide logging
data to libtrace. This allows the overlay code to supply the caller's pc
to libtrace and fix `log show --source` to show the caller's source
information when called from Swift.

Addresses radar:
<rdar://problem/29195869> os_log in Swift via overlay does not include
'source' filename/line number in `log stream`
Copy link
Member

@DougGregor DougGregor left a comment

Choose a reason for hiding this comment

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

LGTM

@DougGregor
Copy link
Member

@swift-ci please test

@DougGregor DougGregor added this to the Swift 3.1 milestone Jan 27, 2017
@DougGregor DougGregor merged commit 2f7ab8a into swiftlang:swift-3.1-branch Jan 27, 2017
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.

2 participants