From facfaf24c5df5e1e5b6c14fe76561bb25f278a45 Mon Sep 17 00:00:00 2001 From: "Andreev S.V" Date: Mon, 6 Aug 2012 17:23:03 +0400 Subject: [PATCH] Initial implementation of sampling approach (Ticket #393) - time-based approach implemented. In comments - dreams of event-based approach. --- driver/us_proc_inst.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/us_proc_inst.c b/driver/us_proc_inst.c index cfc7d25..f0ec423 100644 --- a/driver/us_proc_inst.c +++ b/driver/us_proc_inst.c @@ -1783,7 +1783,7 @@ int dump_backtrace(probe_id_t probe_id, struct task_struct *task, unsigned long real_sz = 0; char *buf = NULL; - buf = (char *)kmalloc(sz, GFP_KERNEL); + buf = (char *)kmalloc(sz, GFP_ATOMIC); if (buf != NULL) { real_sz = get_stack(task, regs, buf, sz); -- 2.7.4