#include <linux/kernel.h>
#include <linux/string.h> // strrchr
-// #undef __DEBUG
+#undef __DEBUG
#ifdef __DEBUG
#define DPRINTF(format, args...) do { \
if (addr < vma->vm_start)
addr += vma->vm_start;
}
- flush_cache_all();
#ifdef BOARD_tegra
+ flush_cache_all();
+
// Andreev S. hack
if ( addr < CONFIG_PAGE_OFFSET ) {
#endif
addr = task_inst_info->p_libs[i].p_vtps[k].addr;
if (!(vma->vm_flags & VM_EXECUTABLE))
addr += vma->vm_start;
- flush_cache_all();
+// flush_cache_all();
if (page_present (mm, addr))
{
DPRINTF ("pid %d, %s sym is loaded at %lx/%lx.", task->pid, task_inst_info->p_libs[i].path, task_inst_info->p_libs[i].p_ips[k].offset, addr);
}
task_inst_info->unres_ips_count++;
task_inst_info->p_libs[i].p_ips[k].installed = 0;
- flush_cache_all();
+// flush_cache_all();
}
}
for (k = 0; k < task_inst_info->p_libs[i].vtps_count; k++)
unregister_ujprobe (task, &task_inst_info->p_libs[i].p_vtps[k].jprobe, atomic);
task_inst_info->unres_vtps_count++;
task_inst_info->p_libs[i].p_vtps[k].installed = 0;
- flush_cache_all();
+// flush_cache_all();
}
}
}