patch-process_c 1.3 KB

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