-
Notifications
You must be signed in to change notification settings - Fork 473
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
Clang X-ray dynamic tracing support #88
Comments
Hi @namhyung 😄 I tested this new feature with However, I tested on the below environment.
And I tested
So I checked it by
The same problem occurs when testing just
|
Thank you very much for testing this. I have two questions:
|
It seems about just I tested with
case A) normal tracing [OK]
case B) dynamic tracing [NG]
Sorry, it seems better to make this problem new issue about |
Pushed |
Forgot to fix the warnings, pushed |
Hi @namhyung , uftrace built by However, I found the similar segfault (at libmcount/mcount.c:714) on
|
Thanks a lot for testing! Could you please test below again?
|
Okey, I'll tell you the result of your patch ! 😄 |
Fine ! the segfault is gone, @namhyung |
But I found the similar segfault on original |
Yep, I think there's a problem too. Even |
Pushed |
@namhyung I checked new test case of 90f95a16 I thought the case that testers use old But how about using Case 1) Using
Then, we can see build error like below without
Or, Case 2) Using
Then, we can see the error message only with
What do you think about this change ? |
I like the option 2. Can I add it as a separate commit with your sign-off? |
Sure, you can do that 😄 |
Merged: 04991ed |
I didn't catch up x-ray support for a while but thanks very much for this work! |
Clang/LLVM 4.0 provides a dynamic tracing feature called X-ray. It's similar to
gcc -mfentry -mnop-mcount
but it also supports the exit path (like-finstrument-functions
). In the end, it's more powerful and safe, but generates more bloated code - and it seems that the xray library is linked statically to the executable.I pushed the code into
review/xray-support-v1
branch. Anyone can play with the clang 4, please test! The usage is same as the dynamic patch (-P
option):The text was updated successfully, but these errors were encountered: