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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
|
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/aee.h>
#include <linux/utsname.h>
#include <linux/sched.h>
#include <linux/list.h>
#include <linux/init.h>
#include <linux/smp.h>
#include <linux/mt_sched_mon.h>
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/hardirq.h>
#include <linux/stacktrace.h>
#include <linux/mm.h>
#include <asm/stacktrace.h>
#include <asm/memory.h>
#include <asm/traps.h>
#include <mach/fiq_smp_call.h>
#include <mach/wd_api.h>
#ifndef __aarch64__
#include <mach/smp.h>
#include <mach/irqs.h>
#endif
#include "aee-common.h"
#undef WDT_DEBUG_VERBOSE
/* #define WDT_DEBUG_VERBOSE */
#ifdef WDT_DEBUG_VERBOSE
extern int dump_localtimer_info(char *buffer, int size);
extern int dump_idle_info(char *buffer, int size);
#endif
/* Some chip do not have irq dump, define a weak to avoid build error */
__weak void mt_irq_dump(void)
{
return;
}
#define THREAD_INFO(sp) ((struct thread_info *) \
((unsigned long)(sp) & ~(THREAD_SIZE - 1)))
#ifdef CONFIG_SCHED_DEBUG
extern int sysrq_sched_debug_show_at_KE(void);
#endif
#ifdef CONFIG_SMP
extern void dump_log_idle(void);
extern void irq_raise_softirq(const struct cpumask *mask, unsigned int irq);
#endif
/* extern void mt_fiq_printf(const char *fmt, ...); */
#define WDT_PERCPU_LOG_SIZE 1024
#define WDT_LOG_DEFAULT_SIZE 4096
#define WDT_SAVE_STACK_SIZE 128
#define MAX_EXCEPTION_FRAME 16
extern int debug_locks;
/* NR_CPUS may not eaqual to real cpu numbers, alloc buffer at initialization */
static char *wdt_percpu_log_buf[NR_CPUS];
static int wdt_percpu_log_length[NR_CPUS];
static char wdt_log_buf[WDT_LOG_DEFAULT_SIZE];
static int wdt_percpu_preempt_cnt[NR_CPUS];
static unsigned long wdt_percpu_stackframe[NR_CPUS][MAX_EXCEPTION_FRAME];
static int wdt_log_length;
static atomic_t wdt_enter_fiq;
static struct {
char bin_buf[WDT_SAVE_STACK_SIZE];
int real_len;
unsigned long top;
unsigned long bottom;
} stacks_buffer_bin[NR_CPUS];
static struct {
struct pt_regs regs;
int real_len;
} regs_buffer_bin[NR_CPUS];
int in_fiq_handler(void)
{
return atomic_read(&wdt_enter_fiq);
}
void aee_wdt_dump_info(void)
{
char *printk_buf = wdt_log_buf;
struct task_struct *task;
int cpu, i;
task = &init_task;
aee_rr_rec_fiq_step(AEE_FIQ_STEP_KE_WDT_INFO);
if (wdt_log_length == 0) {
LOGE("\n No log for WDT\n");
mt_dump_sched_traces();
#ifdef CONFIG_SCHED_DEBUG
/* sysrq_sched_debug_show_at_KE(); */
#endif
return;
}
aee_rr_rec_fiq_step(AEE_FIQ_STEP_KE_WDT_PERCPU);
LOGE("==========================================");
for (cpu = 0; cpu < num_possible_cpus(); cpu++) {
if ((wdt_percpu_log_buf[cpu]) && (wdt_percpu_log_length[cpu])) {
/* LOGE( "=====> wdt_percpu_log_buf[%d], length=%d ", cpu, wdt_percpu_log_length[cpu]); */
LOGE("%s", wdt_percpu_log_buf[cpu]);
LOGE("Backtrace : ");
for (i = 0; i < MAX_EXCEPTION_FRAME; i++) {
if (wdt_percpu_stackframe[cpu][i] == 0)
break;
LOGE("%08lx, ", wdt_percpu_stackframe[cpu][i]);
}
LOGE("==========================================");
}
}
aee_rr_rec_fiq_step(AEE_FIQ_STEP_KE_WDT_LOG);
/* printk temporary buffer printk_buf[1024]. To avoid char loss, add 4 bytes here */
while (wdt_log_length > 0) {
LOGE("%s", printk_buf);
printk_buf += 1020;
wdt_log_length -= 1020;
}
#ifdef CONFIG_SCHED_DEBUG
aee_rr_rec_fiq_step(AEE_FIQ_STEP_KE_SCHED_DEBUG);
sysrq_sched_debug_show_at_KE();
#endif
for_each_process(task) {
if (task->state == 0) {
LOGE("PID: %d, name: %s\n", task->pid, task->comm);
show_stack(task, NULL);
LOGE("\n");
}
}
aee_rr_rec_fiq_step(AEE_FIQ_STEP_KE_WDT_DONE);
}
void aee_wdt_percpu_printf(int cpu, const char *fmt, ...)
{
va_list args;
if (wdt_percpu_log_buf[cpu] == NULL)
return;
va_start(args, fmt);
wdt_percpu_log_length[cpu] +=
vsnprintf((wdt_percpu_log_buf[cpu] + wdt_percpu_log_length[cpu]),
(WDT_PERCPU_LOG_SIZE - wdt_percpu_log_length[cpu]), fmt, args);
va_end(args);
}
void aee_wdt_printf(const char *fmt, ...)
{
va_list args;
va_start(args, fmt);
wdt_log_length += vsnprintf((wdt_log_buf + wdt_log_length),
(sizeof(wdt_log_buf) - wdt_log_length), fmt, args);
va_end(args);
}
#if defined(CONFIG_FIQ_GLUE)
/* save registers in bin buffer, may comes from various cpu */
static void aee_dump_cpu_reg_bin(int cpu, void *regs_ptr)
{
memcpy(&(regs_buffer_bin[cpu].regs), regs_ptr, sizeof(struct pt_regs));
regs_buffer_bin[cpu].real_len = sizeof(struct pt_regs);
aee_wdt_percpu_printf(cpu, "pc : %08lx, lr : %08lx, cpsr : %08lx\n",
((struct pt_regs *)regs_ptr)->ARM_pc,
((struct pt_regs *)regs_ptr)->ARM_lr,
((struct pt_regs *)regs_ptr)->ARM_cpsr);
aee_wdt_percpu_printf(cpu, "sp : %08lx, ip : %08lx, fp : %08lx\n",
((struct pt_regs *)regs_ptr)->ARM_sp,
((struct pt_regs *)regs_ptr)->ARM_ip,
((struct pt_regs *)regs_ptr)->ARM_fp);
aee_wdt_percpu_printf(cpu, "r10 : %08lx, r9 : %08lx, r8 : %08lx\n",
((struct pt_regs *)regs_ptr)->ARM_r10,
((struct pt_regs *)regs_ptr)->ARM_r9,
((struct pt_regs *)regs_ptr)->ARM_r8);
aee_wdt_percpu_printf(cpu, "r7 : %08lx, r6 : %08lx, r5 : %08lx\n",
((struct pt_regs *)regs_ptr)->ARM_r7,
((struct pt_regs *)regs_ptr)->ARM_r6,
((struct pt_regs *)regs_ptr)->ARM_r5);
aee_wdt_percpu_printf(cpu, "r4 : %08lx, r3 : %08lx, r2 : %08lx\n",
((struct pt_regs *)regs_ptr)->ARM_r4,
((struct pt_regs *)regs_ptr)->ARM_r3,
((struct pt_regs *)regs_ptr)->ARM_r2);
aee_wdt_percpu_printf(cpu, "r1 : %08lx, r0 : %08lx\n",
((struct pt_regs *)regs_ptr)->ARM_r1,
((struct pt_regs *)regs_ptr)->ARM_r0);
return;
}
/* dump the stack into buffer */
static void aee_wdt_dump_stack_bin(unsigned int cpu, unsigned long bottom, unsigned long top)
{
int i, count = 0;
unsigned long p, fp;
unsigned long high;
struct stackframe cur_frame;
struct pt_regs *exp_regs;
stacks_buffer_bin[cpu].real_len =
aee_dump_stack_top_binary(stacks_buffer_bin[cpu].bin_buf,
sizeof(stacks_buffer_bin[cpu].bin_buf), bottom, top);
stacks_buffer_bin[cpu].top = top;
stacks_buffer_bin[cpu].bottom = bottom;
/* should check stack address in kernel range */
if (bottom & 3) {
aee_wdt_percpu_printf(cpu, "%s bottom unaligned %08lx\n", __func__, bottom);
return;
}
if (!((bottom >= (PAGE_OFFSET + THREAD_SIZE)) && virt_addr_valid(bottom))) {
aee_wdt_percpu_printf(cpu, "%s bottom out of kernel addr space %08lx\n", __func__,
bottom);
return;
}
if (!((top >= (PAGE_OFFSET + THREAD_SIZE)) && virt_addr_valid(bottom))) {
aee_wdt_percpu_printf(cpu, "%s top out of kernel addr space %08lx\n", __func__,
top);
return;
}
aee_wdt_percpu_printf(cpu, "stack (0x%08lx to 0x%08lx)\n", bottom, top);
for (p = bottom; p < top; p += 4) {
unsigned long val;
if (count == 0) {
aee_wdt_percpu_printf(cpu, "%04lx: ", p & 0xffff);
}
val = *((unsigned long *)(p));
aee_wdt_percpu_printf(cpu, "%08lx ", val);
count++;
if (count == 8) {
aee_wdt_percpu_printf(cpu, "\n");
count = 0;
}
}
/* save backtrace addr */
high = ALIGN(bottom, THREAD_SIZE);
/* cur_frame.pc = regs_buffer_bin[cpu].regs.ARM_pc; */
cur_frame.lr = regs_buffer_bin[cpu].regs.ARM_lr;
cur_frame.fp = regs_buffer_bin[cpu].regs.ARM_fp;
/* cur_frame.sp = regs_buffer_bin[cpu].regs.ARM_sp; */
for (i = 0; i < MAX_EXCEPTION_FRAME; i++) {
wdt_percpu_stackframe[cpu][i] = cur_frame.lr;
fp = cur_frame.fp;
if ((fp < (bottom + 12)) || ((fp + 4) >= high)) {
/* aee_wdt_percpu_printf(cpu, "\n fp %08lx invalid\n", fp); */
return;
}
cur_frame.fp = *(unsigned long *)(fp - 12);
/* cur_frame.sp = *(unsigned long *)(fp - 8); */
cur_frame.lr = *(unsigned long *)(fp - 4);
cur_frame.pc = *(unsigned long *)(fp);
if (!((cur_frame.lr >= (PAGE_OFFSET + THREAD_SIZE)) &&
virt_addr_valid(cur_frame.lr))) {
/* aee_wdt_percpu_printf(cpu, "\n lr %08lx invalid\n", cur_frame.lr); */
return;
}
if (in_exception_text(cur_frame.pc)) {
exp_regs = (struct pt_regs *)(fp + 4);
cur_frame.lr = exp_regs->ARM_pc;
}
}
return;
}
#endif /* #ifdef CONFIG_FIQ_GLUE */
extern void mrdump_mini_per_cpu_regs(int cpu, struct pt_regs *regs);
/* save binary register and stack value into ram console */
static void aee_save_reg_stack_sram(int cpu)
{
int i;
char str_buf[256];
int len = 0;
if (regs_buffer_bin[cpu].real_len != 0) {
snprintf(str_buf, sizeof(str_buf),
"\n\ncpu %d preempt=%lx, softirq=%lx, hardirq=%lx ", cpu,
((wdt_percpu_preempt_cnt[cpu] & PREEMPT_MASK) >> PREEMPT_SHIFT),
((wdt_percpu_preempt_cnt[cpu] & SOFTIRQ_MASK) >> SOFTIRQ_SHIFT),
((wdt_percpu_preempt_cnt[cpu] & HARDIRQ_MASK) >> HARDIRQ_SHIFT));
aee_sram_fiq_log(str_buf);
memset(str_buf, 0, sizeof(str_buf));
snprintf(str_buf, sizeof(str_buf),
"\ncpu %d r0->r10 fp ip sp lr pc cpsr orig_r0\n", cpu);
aee_sram_fiq_log(str_buf);
aee_sram_fiq_save_bin((char *)&(regs_buffer_bin[cpu].regs),
regs_buffer_bin[cpu].real_len);
}
if (stacks_buffer_bin[cpu].real_len > 0) {
memset(str_buf, 0, sizeof(str_buf));
snprintf(str_buf, sizeof(str_buf), "\ncpu %d stack [%08lx %08lx]\n",
cpu, stacks_buffer_bin[cpu].bottom, stacks_buffer_bin[cpu].top);
aee_sram_fiq_log(str_buf);
aee_sram_fiq_save_bin(stacks_buffer_bin[cpu].bin_buf,
stacks_buffer_bin[cpu].real_len);
memset(str_buf, 0, sizeof(str_buf));
len = snprintf(str_buf, sizeof(str_buf), "\ncpu %d backtrace : ", cpu);
for (i = 0; i < MAX_EXCEPTION_FRAME; i++) {
if (wdt_percpu_stackframe[cpu][i] == 0)
break;
len += snprintf((str_buf + len), (sizeof(str_buf) - len),
"%08lx, ", wdt_percpu_stackframe[cpu][i]);
}
aee_sram_fiq_log(str_buf);
}
mrdump_mini_per_cpu_regs(cpu, ®s_buffer_bin[cpu].regs);
}
#ifdef CONFIG_SMP
#ifdef CONFIG_FIQ_GLUE
void aee_fiq_ipi_cpu_stop(void *arg, void *regs, void *svc_sp)
{
int cpu = 0;
register int sp asm("sp");
struct pt_regs *ptregs = (struct pt_regs *)regs;
asm volatile ("mov %0, %1\n\t" "mov fp, %2\n\t":"=r" (sp)
: "r"(svc_sp), "r"(ptregs->ARM_fp)
);
cpu = get_HW_cpuid();
if (!cpu_possible(cpu)) {
aee_wdt_printf("aee_fiq_ipi_cpu_stop at incorrect CPU %d ?\n", cpu);
local_fiq_disable();
local_irq_disable();
while (1)
cpu_relax();
}
aee_wdt_percpu_printf(cpu, "CPU%u: stopping by FIQ\n", cpu);
wdt_percpu_preempt_cnt[cpu] = preempt_count();
aee_wdt_percpu_printf(cpu, "preempt=%lx, softirq=%lx, hardirq=%lx\n",
((wdt_percpu_preempt_cnt[cpu] & PREEMPT_MASK) >> PREEMPT_SHIFT),
((wdt_percpu_preempt_cnt[cpu] & SOFTIRQ_MASK) >> SOFTIRQ_SHIFT),
((wdt_percpu_preempt_cnt[cpu] & HARDIRQ_MASK) >> HARDIRQ_SHIFT));
aee_dump_cpu_reg_bin(cpu, regs);
aee_wdt_dump_stack_bin(cpu, ((struct pt_regs *)regs)->ARM_sp,
((struct pt_regs *)regs)->ARM_sp + WDT_SAVE_STACK_SIZE);
set_cpu_online(cpu, false);
local_fiq_disable();
local_irq_disable();
while (1)
cpu_relax();
}
void aee_smp_send_stop(void)
{
unsigned long timeout;
struct cpumask mask;
int cpu = 0;
cpumask_copy(&mask, cpu_online_mask);
cpu = get_HW_cpuid();
cpumask_clear_cpu(cpu, &mask);
/* mt_fiq_printf("\n fiq_smp_call_function\n"); */
fiq_smp_call_function(aee_fiq_ipi_cpu_stop, NULL, 0);
/* Wait up to one second for other CPUs to stop */
timeout = USEC_PER_SEC;
while (num_online_cpus() > 1 && timeout--)
udelay(1);
if (num_online_cpus() > 1) {
aee_wdt_printf("WDT: failed to stop other CPUs in FIQ\n");
}
}
#else
void aee_smp_send_stop(void)
{
unsigned long timeout;
struct cpumask mask;
int cpu = 0;
cpumask_copy(&mask, cpu_online_mask);
#ifdef __aarch64__
smp_send_stop();
#else
cpu = get_HW_cpuid();
cpumask_clear_cpu(cpu, &mask);
//irq_raise_softirq(&mask, IPI_CPU_STOP);//FIXME : temporarily disable for atf project bring up
#endif
/* Wait up to one second for other CPUs to stop */
timeout = USEC_PER_SEC;
while (num_online_cpus() > 1 && timeout--)
udelay(1);
if (num_online_cpus() > 1)
aee_wdt_printf("WDT: failed to stop other CPUs\n");
}
#endif /* #ifdef CONFIG_FIQ_GLUE */
#endif /* #ifdef CONFIG_SMP */
void aee_rr_rec_exp_type(unsigned int type);
void aee_wdt_irq_info(void)
{
unsigned long long t;
unsigned long nanosec_rem;
int res = 0, cpu;
struct wd_api *wd_api = NULL;
res = get_wd_api(&wd_api);
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_KICK);
if (res) {
aee_wdt_printf("aee_wdt_irq_info, get wd api error\n");
} else {
wd_api->wd_restart(WD_TYPE_NOLOCK);
}
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_SMP_STOP);
#ifdef CONFIG_SMP
aee_smp_send_stop();
#endif
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_STACK);
for (cpu = 1; cpu < num_possible_cpus(); cpu++)
aee_save_reg_stack_sram(cpu);
aee_sram_fiq_log("\n\n");
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_TIME);
t = cpu_clock(smp_processor_id());
nanosec_rem = do_div(t, 1000000000);
aee_wdt_printf("\nQwdt at [%5lu.%06lu] ", (unsigned long)t, nanosec_rem / 1000);
#ifdef WDT_DEBUG_VERBOSE
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_GIC);
mt_irq_dump();
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_LOCALTIMER);
wdt_log_length +=
dump_localtimer_info((wdt_log_buf + wdt_log_length),
(sizeof(wdt_log_buf) - wdt_log_length));
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_IDLE);
wdt_log_length +=
dump_idle_info((wdt_log_buf + wdt_log_length), (sizeof(wdt_log_buf) - wdt_log_length));
#endif
#ifdef CONFIG_MT_SCHED_MONITOR
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_SCHED);
mt_aee_dump_sched_traces();
#endif
aee_sram_fiq_log(wdt_log_buf);
/* avoid lock prove to dump_stack in __debug_locks_off() */
xchg(&debug_locks, 0);
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_IRQ_DONE);
aee_rr_rec_exp_type(1);
BUG();
}
#if defined(CONFIG_FIQ_GLUE)
void aee_wdt_fiq_info(void *arg, void *regs, void *svc_sp)
{
register int sp asm("sp");
struct pt_regs *ptregs = (struct pt_regs *)regs;
int cpu = 0;
asm volatile ("mov %0, %1\n\t" "mov fp, %2\n\t":"=r" (sp)
: "r"(svc_sp), "r"(ptregs->ARM_fp)
);
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_FIQ_INFO);
/* mt_fiq_printf("\n Triggered :cpu-%d\n", cpu); */
cpu = get_HW_cpuid();
if (!cpu_possible(cpu)) {
aee_wdt_printf("FIQ: Watchdog time out at incorrect CPU %d ?\n", cpu);
cpu = 0;
}
aee_wdt_percpu_printf(cpu, "CPU %d FIQ: Watchdog time out\n", cpu);
wdt_percpu_preempt_cnt[cpu] = preempt_count();
aee_wdt_percpu_printf(cpu, "preempt=%lx, softirq=%lx, hardirq=%lx\n",
((wdt_percpu_preempt_cnt[cpu] & PREEMPT_MASK) >> PREEMPT_SHIFT),
((wdt_percpu_preempt_cnt[cpu] & SOFTIRQ_MASK) >> SOFTIRQ_SHIFT),
((wdt_percpu_preempt_cnt[cpu] & HARDIRQ_MASK) >> HARDIRQ_SHIFT));
aee_dump_cpu_reg_bin(cpu, regs);
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_FIQ_STACK);
aee_wdt_dump_stack_bin(cpu, ((struct pt_regs *)regs)->ARM_sp,
((struct pt_regs *)regs)->ARM_sp + WDT_SAVE_STACK_SIZE);
aee_save_reg_stack_sram(cpu);
if (atomic_xchg(&wdt_enter_fiq, 1) != 0) {
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_FIQ_LOOP);
aee_wdt_percpu_printf(cpu, "Other CPU already enter WDT FIQ handler\n");
/* loop forever here to avoid SMP deadlock risk during panic flow */
while (1);
}
aee_rr_rec_fiq_step(AEE_FIQ_STEP_WDT_FIQ_DONE);
aee_wdt_irq_info();
}
#endif /* CONFIG_FIQ_GLUE */
static int __init aee_wdt_init(void)
{
int i;
atomic_set(&wdt_enter_fiq, 0);
for (i = 0; i < num_possible_cpus(); i++) {
wdt_percpu_log_buf[i] = kzalloc(WDT_PERCPU_LOG_SIZE, GFP_KERNEL);
if (wdt_percpu_log_buf[i] == NULL) {
LOGE("\n aee_common_init : kmalloc fail\n");
}
wdt_percpu_log_length[i] = 0;
wdt_percpu_preempt_cnt[i] = 0;
}
memset(wdt_log_buf, 0, sizeof(wdt_log_buf));
memset(regs_buffer_bin, 0, sizeof(regs_buffer_bin));
memset(stacks_buffer_bin, 0, sizeof(stacks_buffer_bin));
memset(wdt_percpu_stackframe, 0, sizeof(wdt_percpu_stackframe));
return 0;
}
module_init(aee_wdt_init);
|