File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
tools/testing/selftests/arm64/gcs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ static int num_processors(void)
56
56
return nproc ;
57
57
}
58
58
59
- static void start_thread (struct child_data * child )
59
+ static void start_thread (struct child_data * child , int id )
60
60
{
61
61
int ret , pipefd [2 ], i ;
62
62
struct epoll_event ev ;
@@ -132,7 +132,7 @@ static void start_thread(struct child_data *child)
132
132
ev .events = EPOLLIN | EPOLLHUP ;
133
133
ev .data .ptr = child ;
134
134
135
- ret = asprintf (& child -> name , "Thread-%d" , child -> pid );
135
+ ret = asprintf (& child -> name , "Thread-%d" , id );
136
136
if (ret == -1 )
137
137
ksft_exit_fail_msg ("asprintf() failed\n" );
138
138
@@ -437,7 +437,7 @@ int main(int argc, char **argv)
437
437
tests );
438
438
439
439
for (i = 0 ; i < gcs_threads ; i ++ )
440
- start_thread (& children [i ]);
440
+ start_thread (& children [i ], i );
441
441
442
442
/*
443
443
* All children started, close the startup pipe and let them
You can’t perform that action at this time.
0 commit comments