File tree 3 files changed +15
-7
lines changed
3 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 43
43
- name : Replay
44
44
run : uftrace replay --data=tracedir --output-fields=tid | tee ci.snap
45
45
- name : Compare to snapshot
46
- run : diff ci .snap out .snap
46
+ run : diff -u out .snap ci .snap
47
47
48
48
rust :
49
49
name : Rust
70
70
- name : Replay
71
71
run : uftrace replay --data=tracedir --output-fields=tid | tee ci.snap
72
72
- name : Compare to snapshot
73
- run : diff ci .snap out .snap
73
+ run : diff -u out .snap ci .snap
Original file line number Diff line number Diff line change 9
9
[ 1 ] | } /* rftrace_rs_test::test3 */
10
10
[ 1 ] | } /* rftrace_rs_test::test2 */
11
11
[ 1 ] | } /* rftrace_rs_test::test1 */
12
+ [ 1 ] | rftrace_frontend ::frontend ::dump_full_uftrace () {
13
+ [ 1 ] | rftrace_frontend ::frontend ::dump_traces () {
14
+ [ 1 ] | rftrace_frontend ::frontend ::disable ();
15
+
16
+ uftrace stopped tracing with remaining functions
17
+ ================================================
18
+ task : 1
19
+ [1 ] rftrace_frontend ::frontend ::dump_traces
20
+ [0 ] rftrace_frontend ::frontend ::dump_full_uftrace
21
+
Original file line number Diff line number Diff line change 1
- use core:: arch:: asm ;
1
+ use core:: arch:: naked_asm ;
2
2
use core:: arch:: x86_64:: _rdtsc;
3
3
use core:: slice;
4
4
use core:: sync:: atomic:: { AtomicBool , AtomicU64 , AtomicUsize , Ordering } ;
@@ -87,7 +87,7 @@ pub unsafe extern "C" fn mcount() {
87
87
// mcounts ret addr is directly at rsp
88
88
89
89
// based on https://github.com/namhyung/uftrace/blob/master/arch/x86_64/mcount.S
90
- asm ! (
90
+ naked_asm ! (
91
91
// if ENABLED.load(Ordering::Relaxed) {
92
92
// return;
93
93
// }
@@ -132,7 +132,6 @@ pub unsafe extern "C" fn mcount() {
132
132
"pop rax" ,
133
133
"ret" ,
134
134
// TODO: ENABLED = sym ENABLED,
135
- options( noreturn) ,
136
135
) ;
137
136
}
138
137
@@ -395,7 +394,7 @@ pub unsafe extern "C" fn mcount_return_trampoline() {
395
394
RSP +0 rax
396
395
*/
397
396
398
- asm ! (
397
+ naked_asm ! (
399
398
prologue!( ) ,
400
399
// always backup return registers
401
400
"mov [rsp + 8], rdx" ,
@@ -416,7 +415,6 @@ pub unsafe extern "C" fn mcount_return_trampoline() {
416
415
restore_sse2!( ) ,
417
416
epilogue!( ) ,
418
417
"ret" ,
419
- options( noreturn) ,
420
418
) ;
421
419
}
422
420
You can’t perform that action at this time.
0 commit comments