trace_shed: Adapt to glibc 2.24 removal of union wait type
PATCH 1/1 trace_shed: Adapt to glibc 2.24 removal of union wait type
This is now needed since glibc commit
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6;hp=5f5682b9654101ccaf375c2814cbddbe6033a725
WEXITSTATUS macro does not do the enum translation anymore and expects the applications to pass int type fro status
fixes below error
trace_sched.c:425:16: error: invalid operands to binary & (have 'thread_sched_t * {aka struct <anonymous> *}' and 'int')
thrd_ndx, WEXITSTATUS(status));
--- testcases/kernel/sched/tool/trace_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/sched/tool/trace_sched.c +1 -1
@@ -422,7 +422,7 @@ int main(int argc, /* number of input parameters. */if (status == (thread_sched_t *) -1 ) {fprintf (stderr,"thread [%d] - process exited with errors %d\n" , - thrd_ndx,WEXITSTATUS (status)); + thrd_ndx,WEXITSTATUS ((int )status));exit (-1 ); }else { exp_prio[thrd_ndx] = status->exp_prio;
Signature · 1 line
2.9.0
PATCH 1/1 trace_shed: Adapt to glibc 2.24 removal of union wait type
ignore this. I have a better one to follow
Quoted 33 lines · Khem Raj
This is now needed since glibc commit
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6;hp=5f5682b9654101ccaf375c2814cbddbe6033a725WEXITSTATUS macro does not do the enum translation anymore and expects the applications to pass int type fro status
fixes below error
trace_sched.c:425:16: error: invalid operands to binary & (have '
thread_sched_t* {aka struct <anonymous> *}' and 'int')thrd_ndx, WEXITSTATUS(status));Signed-off-by Khem Raj <[email protected]>--- testcases/kernel/sched/tool/trace_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)testcases/kernel/sched/tool/trace_sched.c +1
-2@@ -422,7 +422,7 @@ int main(int argc, /* number of input parameters. */if (status == (thread_sched_t *) -1 ) {fprintf (stderr,"thread [%d] - process exited with errors %d\n" , - thrd_ndx,WEXITSTATUS (status)); + thrd_ndx,WEXITSTATUS ((int )status));exit (-1 ); }else { exp_prio[thrd_ndx] = status->exp_prio; --2.9.0
PATCH 1/1 trace_shed: Adapt to glibc 2.24 removal of union wait type
In reply to Khem Raj----- Original Message -----
Quoted 28 lines
From: "Khem Raj" <[email protected]>
To: [email protected]
Sent: Thursday, 21 July, 2016 6:58:12 AM
Subject: [LTP] [PATCH]trace_shed: Adapt to glibc 2.24 removal of union wait typeThis is now needed since glibc commit
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6;hp=5f5682b9654101ccaf375c2814cbddbe6033a725WEXITSTATUS macro does not do the enum translation anymore and expects the applications to pass int type fro status
fixes below error
trace_sched.c:425:16: error: invalid operands to binary & (have '
thread_sched_t* {aka struct <anonymous> *}' and 'int')thrd_ndx, WEXITSTATUS(status));Signed-off-by Khem Raj <[email protected]>--- testcases/kernel/sched/tool/trace_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)testcases/kernel/sched/tool/trace_sched.c +0
-0
testcases/kernel/sched/tool/trace_sched.c int main(int argc, /* number of input parameters. · line 426
Quoted 6 lines
testcases/kernel/sched/tool/trace_sched.c +1
-1@@ -422,7 +422,7 @@ int main(int argc, /* number of input parameters.*/ if (status == (thread_sched_t *) -1 ) {fprintf (stderr,"thread [%d] - process exited with errors %d\n" , - thrd_ndx,WEXITSTATUS (status)); + thrd_ndx,WEXITSTATUS ((int )status));
Can we just drop WEXITSTATUS() from this fprintf? It's a pointer to some struct, and on top of that it's always -1 here. It doesn't look like this ever provided anything useful.
Regards,
Jan
Quoted 10 lines
testcases/kernel/sched/tool/trace_sched.c +0
-0exit (-1 ); }else {exp_prio[thrd_ndx] =
status->exp_prio;
--
2.9.0--
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 1/1 trace_shed: Adapt to glibc 2.24 removal of union wait type
Hi Jan
Quoted 34 lines · Jan Stancek
----- Original Message -----
Quoted 31 lines
From: "Khem Raj" <[email protected]>
To: [email protected]
Sent: Thursday, 21 July, 2016 6:58:12 AM
Subject: [LTP] [PATCH]trace_shed: Adapt to glibc 2.24 removal of union wait typeThis is now needed since glibc commit
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6;hp=5f5682b9654101ccaf375c2814cbddbe6033a725WEXITSTATUS macro does not do the enum translation anymore and expects the applications to pass int type fro status
fixes below error
trace_sched.c:425:16: error: invalid operands to binary & (have '
thread_sched_t* {aka struct <anonymous> *}' and 'int')thrd_ndx, WEXITSTATUS(status));Signed-off-by Khem Raj <[email protected]>--- testcases/kernel/sched/tool/trace_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)testcases/kernel/sched/tool/trace_sched.c +0
-0@@ -422,7 +422,7 @@ int main(int argc, /* number of input parameters.*/ if (status == (thread_sched_t *) -1 ) { fprintf(stderr,
Quoted 8 lines
testcases/kernel/sched/tool/trace_sched.c int main(int argc, /* number of input parameters. */ · line 425
Quoted 3 lines
testcases/kernel/sched/tool/trace_sched.c +1
-1"thread [%d] - process exited with errors %d\n" , - thrd_ndx, WEXITSTATUS(status)); + thrd_ndx, WEXITSTATUS((int)status));Can we just drop
WEXITSTATUS()from this fprintf? It's a pointer to some struct, and on top of that it's always -1 here. It doesn't look like this ever provided anything useful.
Yes, I have sent a series of patches which includes such a fix for this. This one
should be ignored.
Quoted 14 lines
Regards,
JanQuoted 10 lines
testcases/kernel/sched/tool/trace_sched.c +0
-0exit (-1 ); }else {exp_prio[thrd_ndx] = status->exp_prio;--
2.9.0--
Mailing list info: https://lists.linux.it/listinfo/ltp
PATCH 1/1 trace_shed: Adapt to glibc 2.24 removal of union wait type
----- Original Message -----
Quoted 55 lines
From: "Khem Raj" <[email protected]>
To: "Jan Stancek" <[email protected]>
Cc: [email protected]
Sent: Friday, 22 July, 2016 3:54:16 PM
Subject: Re: [LTP] [PATCH]trace_shed: Adapt to glibc 2.24 removal of union wait typeHi Jan
Quoted 37 lines · Jan Stancek
----- Original Message -----
Quoted 34 lines
From: "Khem Raj" <[email protected]>
To: [email protected]
Sent: Thursday, 21 July, 2016 6:58:12 AM
Subject: [LTP] [PATCH]trace_shed: Adapt to glibc 2.24 removal of union wait typeThis is now needed since glibc commit
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b49ab5f4503f36dcbf43f821f817da66b2931fe6;hp=5f5682b9654101ccaf375c2814cbddbe6033a725WEXITSTATUS macro does not do the enum translation anymore and expects the applications to pass int type fro status
fixes below error
trace_sched.c:425:16: error: invalid operands to binary & (have '
thread_sched_t* {aka struct <anonymous> *}' and 'int')thrd_ndx, WEXITSTATUS(status));Signed-off-by Khem Raj <[email protected]>--- testcases/kernel/sched/tool/trace_sched.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)testcases/kernel/sched/tool/trace_sched.c +0
-0@@ -422,7 +422,7 @@ int main(int argc, /* number of inputparameters.
*/
if (status == (thread_sched_t*) - 1) {
fprintf(stderr,
"thread [%d] - process exited withQuoted 8 lines
testcases/kernel/sched/tool/trace_sched.c int main(int argc, /* number of input parameters. */ · line 425
Quoted 3 lines
errors %d\n",testcases/kernel/sched/tool/trace_sched.c +1
-1- thrd_ndx, WEXITSTATUS(status)); + thrd_ndx, WEXITSTATUS((int)status));Can we just drop
WEXITSTATUS()from this fprintf? It's a pointer to some struct, and on top of that it's always -1 here. It doesn't look like this ever provided anything useful.
Quoted 3 lines
Yes, I have sent a series of patches which includes such a fix for this. This one
should be ignored.
I see, sorry I haven't caught up with all mail yet.
Regards,
Jan
Quoted 16 lines
Quoted 15 lines
Regards,
JanQuoted 10 lines
exit(-1); } else { exp_prio[thrd_ndx] = status->exp_prio;--
2.9.0--
Mailing list info: https://lists.linux.it/listinfo/ltp