patch-daemon_liblegacy_opd_kernel_c 768 B

12345678910111213141516171819202122232425262728293031323334
  1. --- oprofile-0.9.6.orig/daemon/liblegacy/opd_kernel.c 2009-11-24 16:25:17.000000000 +0100
  2. +++ oprofile-0.9.6/daemon/liblegacy/opd_kernel.c 2010-07-13 18:20:26.727084854 +0200
  3. @@ -148,6 +148,7 @@ void opd_clear_module_info(void)
  4. */
  5. static void opd_get_module_info(void)
  6. {
  7. +#if 0
  8. char * line;
  9. char * cp, * cp2, * cp3;
  10. FILE * fp;
  11. @@ -252,6 +253,7 @@ static void opd_get_module_info(void)
  12. if (line)
  13. free(line);
  14. op_close_file(fp);
  15. +#endif
  16. }
  17. @@ -270,6 +272,7 @@ static void opd_get_module_info(void)
  18. */
  19. static void opd_drop_module_sample(unsigned long eip)
  20. {
  21. +#if 0
  22. char * module_names;
  23. char * name;
  24. size_t size = 1024;
  25. @@ -307,6 +310,7 @@ static void opd_drop_module_sample(unsig
  26. if (module_names)
  27. free(module_names);
  28. +#endif
  29. }