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