patch-process_c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --- strace-4.8.orig/process.c 2013-05-18 00:22:19.000000000 +0200
  2. +++ strace-4.8/process.c 2013-10-24 18:57:55.000000000 +0200
  3. @@ -56,14 +56,12 @@
  4. #endif
  5. #ifdef HAVE_LINUX_PTRACE_H
  6. -# undef PTRACE_SYSCALL
  7. # ifdef HAVE_STRUCT_IA64_FPREG
  8. # define ia64_fpreg XXX_ia64_fpreg
  9. # endif
  10. # ifdef HAVE_STRUCT_PT_ALL_USER_REGS
  11. # define pt_all_user_regs XXX_pt_all_user_regs
  12. # endif
  13. -# include <linux/ptrace.h>
  14. # undef ia64_fpreg
  15. # undef pt_all_user_regs
  16. #endif
  17. @@ -2857,7 +2855,7 @@ sys_sched_setscheduler(struct tcb *tcp)
  18. if (umove(tcp, tcp->u_arg[2], &p) < 0)
  19. tprintf(", %#lx", tcp->u_arg[2]);
  20. else
  21. - tprintf(", { %d }", p.__sched_priority);
  22. + tprintf(", { %d }", p.sched_priority);
  23. }
  24. return 0;
  25. }
  26. @@ -2872,7 +2870,7 @@ sys_sched_getparam(struct tcb *tcp)
  27. if (umove(tcp, tcp->u_arg[1], &p) < 0)
  28. tprintf("%#lx", tcp->u_arg[1]);
  29. else
  30. - tprintf("{ %d }", p.__sched_priority);
  31. + tprintf("{ %d }", p.sched_priority);
  32. }
  33. return 0;
  34. }
  35. @@ -2885,7 +2883,7 @@ sys_sched_setparam(struct tcb *tcp)
  36. if (umove(tcp, tcp->u_arg[1], &p) < 0)
  37. tprintf("%d, %#lx", (int) tcp->u_arg[0], tcp->u_arg[1]);
  38. else
  39. - tprintf("%d, { %d }", (int) tcp->u_arg[0], p.__sched_priority);
  40. + tprintf("%d, { %d }", (int) tcp->u_arg[0], p.sched_priority);
  41. }
  42. return 0;
  43. }