File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
tools/tracing/rtla/sample Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 37
37
exit (1 )
38
38
39
39
try :
40
- os .sched_setaffinity (0 , affinity_mask );
40
+ os .sched_setaffinity (0 , affinity_mask )
41
41
except :
42
42
print ("Error setting affinity" )
43
43
exit (1 )
44
44
45
- if ( args .prio ) :
45
+ if args .prio :
46
46
try :
47
47
param = os .sched_param (int (args .prio ))
48
48
os .sched_setscheduler (0 , os .SCHED_FIFO , param )
51
51
exit (1 )
52
52
53
53
try :
54
- timerlat_path = "/sys/kernel/tracing/osnoise/per_cpu/cpu" + args .cpu + " /timerlat_fd"
54
+ timerlat_path = f "/sys/kernel/tracing/osnoise/per_cpu/cpu{ args .cpu } /timerlat_fd"
55
55
timerlat_fd = open (timerlat_path , 'r' )
56
56
except :
57
57
print ("Error opening timerlat fd, did you run timerlat -U?" )
58
58
exit (1 )
59
59
60
60
try :
61
- data_fd = open ("/dev/full" , 'r' );
61
+ data_fd = open ("/dev/full" , 'r' )
62
62
except :
63
63
print ("Error opening data fd" )
64
64
65
65
while True :
66
66
try :
67
67
timerlat_fd .read (1 )
68
- data_fd .read (20 * 1024 * 1024 )
68
+ data_fd .read (20 * 1024 * 1024 )
69
69
except :
70
70
print ("Leaving" )
71
71
break
You can’t perform that action at this time.
0 commit comments