unsigned long caller_offset;
unsigned long call_type_offset;
unsigned long caller_addr;
- bool drop;
int ret;
/* FIXME: swap_get_uarg uses get_user(), it might sleep */
return 0;
}
- ret = preload_threads_get_drop(current, &drop);
- if (ret == 0 && drop)
+ ret = preload_threads_get_drop(current);
+ if (ret > 0)
return 0;
buf = kmalloc(len, GFP_ATOMIC);
return ret;
}
-int preload_threads_get_drop(struct task_struct *task, bool *drop)
+int preload_threads_get_drop(struct task_struct *task)
{
struct thread_slot *slot;
int ret = 0;
slot = __get_task_slot(task);
if (slot != NULL) {
- *drop = slot->drop;
+ ret = (int) slot->drop;
goto get_drop_done;
}
int preload_threads_get_caller(struct task_struct *task, unsigned long *caller);
int preload_threads_get_call_type(struct task_struct *task,
unsigned char *call_type);
-int preload_threads_get_drop(struct task_struct *task, bool *drop);
+int preload_threads_get_drop(struct task_struct *task);
bool preload_threads_check_disabled_probe(struct task_struct *task,
unsigned long addr);
void preload_threads_enable_probe(struct task_struct *task, unsigned long addr);