我正在从Boundary Devices运行Linux 4.9 fork。我启用了: 配置文件 CONFIG_FUNCTION_TRACER CONFIG_FUNCTION_GRAPH_TRACER
一旦设备启动,我将使用以下命令安装跟踪文件: 挂载-t tracefs nodev / sys / kernel / tracing
然后,我启用了功能跟踪器,内核无法处理内核分页请求并死亡。我是否需要在内核中启用其他功能以支持ftrace?
root@ar2-0019b806fafd:~# echo function > /sys/kernel/tracing/current_tracer
[ 204.435281] Unable to handle kernel paging request at virtual address ffff000008f6ee78
[ 204.435286] Unable to handle kernel paging request at virtual address ffff000008f6ee78
[ 204.435291] Unable to handle kernel paging request at virtual address ffff000008f6ee78
[ 204.435303] pgd = ffff8000f9bbe000
[ 204.435306] pgd = ffff8000f9bbe000
[ 204.435313] [ffff000008f6ee78] *pgd=000000013330f003
[ 204.435317] [ffff000008f6ee78] *pgd=000000013330f003
[ 204.435322] , *pud=0000000000000000, *pud=0000000000000000[ 204.435332] Internal error: Oops: 96000047 [#1] PREEMPT SMP
[ 204.435340] Modules linked in:
[ 204.435348] CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.9.128-arvilla-1.1-snapshot-20190904+ga6c748d #1
[ 204.435352] Hardware name: Appareo Systems Arvilla 2 (DT)
[ 204.435356] task: ffff8000f8214e00 task.stack: ffff8000f8220000
[ 204.435372] PC is at __buffer_unlock_commit+0x24/0xe8
[ 204.435379] LR is at trace_function+0x78/0x88
[ 204.435384] pc : [<ffff0000081a013c>] lr : [<ffff0000081a0de8>] pstate: 000003c5
[ 204.435388] sp : ffff8000f8223c10
[ 204.435397] x29: ffff8000f8223c10 x28: ffff8000f8220000
[ 204.435405] x27: 0000000000000002 x26: ffff000008f71e58
[ 204.435414] x25: 0000002f97d8ab52 x24: ffff000008faa498
[ 204.435423] x23: ffff0000080976d4 x22: ffff0000080a09d4
[ 204.435432] x21: ffff0000080976d4 x20: ffff8000f80f3010
[ 204.435440] x19: ffff000008f6ee40 x18: 0000000000000000
[ 204.435449] x17: 0000000000000000 x16: 0000000000000000
[ 204.435457] x15: 0000000000000000 x14: 0000000000000000
[ 204.435465] x13: 0000000000000000 x12: 0000000034d5d91d
[ 204.435474] x11: 0000000000000000 x10: 0000000000001000
[ 204.435483] x9 : ffff000008081800 x8 : 00000032b5503510
[ 204.435491] x7 : 0000000000000000 x6 : 0000000000000018
[ 204.435500] x5 : 0000000000000001 x4 : ffff8000f8223c10
[ 204.435510] x3 : 0000000000000000 x2 : ffff000008f6ee78
[ 204.435520] x1 : ffff8000f80f3010 x0 : ffff8000f8006700
[ 204.435523]
[ 204.435528] Process swapper/1 (pid: 0, stack limit = 0xffff8000f8220020)
[ 204.435533] Stack: (0xffff8000f8223c10 to 0xffff8000f8224000)
[ 204.435540] 3c00: ffff8000f8223c40 ffff0000081a0de8
[ 204.435547] 3c20: ffff8000f8006700 ffff8000f80f3010 ffff8000f8223c40 ffff0000081a0da8
[ 204.435554] 3c40: ffff8000f8223c70 ffff0000081a7cd4 0000000000000000 ffff000008faa290
[ 204.435561] 3c60: 0000000000000800 ffff0000080a09d4 ffff8000f8223c90 ffff0000081962ec
[ 204.435569] 3c80: ffff000008fd07f0 ffff0000081962c8 ffff8000f8223d10 ffff00000809440c
[ 204.435575] 3ca0: 0000000000000001 00000000000001c0 ffff000008733288 0000000000000001
[ 204.435582] 3cc0: ffff000009056da8 0000000000000001 ffff000008a490c8 ffff000008a490c8
[ 204.435589] 3ce0: ffff000008a490c8 ffff000008a490c8 ffff000009056da8 0000000000040980
[ 204.435596] 3d00: ffff8000f8223d10 0000000000040980 ffff8000f8223d20 ffff0000080a09d8
[ 204.435603] 3d20: ffff8000f8223d30 ffff0000080976d8 ffff8000f8223d50 ffff000008097840
[ 204.435610] 3d40: ffff000008faa290 ffff0000080977dc ffff8000f8223e60 ffff0000087337f8
[ 204.435620] 3d60: 0000000000000001 ffff000009056e20 ffff8000f87cde00 0000000000000001
[ 204.435626] 3d80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.435634] 3da0: 0000000000000000 0000000000000000 0000000000300000 00000032b5503510
[ 204.435642] 3dc0: ffff000008081800 0000000000001000 0000000000000008 0000000034d5d91d
[ 204.435650] 3de0: ffff8000f8223d50 ffff000009056e20 ffff8000f8223d50 ffff0000080977dc
[ 204.435658] 3e00: ffff000008faa290 00000000000001c0 ffff000008733288 0000000000000001
[ 204.435666] 3e20: ffff000009056da8 0000000000000001 0000002f97d8ab52 ffff000008f71e58
[ 204.435675] 3e40: 0000000000000002 ffff8000f8220000 ffff8000f8223e60 0000000000040980
[ 204.435682] 3e60: ffff8000f8223e80 ffff0000080978e0 0000000000000001 ffff0000080978c0
[ 204.435689] 3e80: ffff8000f8223ea0 ffff000008707818 0000000000000001 0000000000040980
[ 204.435696] 3ea0: ffff8000f8223ec0 ffff000008705600 ffff000009056e08 ffff000009056e20
[ 204.435703] 3ec0: ffff8000f8223f10 ffff00000870596c ffff8000f87cde00 ffff000009056da8
[ 204.435709] 3ee0: 0000000000000001 ffff0000090a6446 ffff000008faa384 ffff000008faa378
[ 204.435716] 3f00: 0000000000000001 ffff000008f71e58 ffff8000f8223f40 ffff00000811af34
[ 204.435723] 3f20: ffff8000f87cde00 ffff000009056da8 0000000000000001 ffff00000811af14
[ 204.435730] 3f40: ffff8000f8223f70 ffff00000811b254 ffff8000f87cde00 ffff000008faa2e8
[ 204.435737] 3f60: ffff000009056da8 ffff000008faa2e8 ffff8000f8223fd0 ffff000008090da4
[ 204.435743] 3f80: 0000000000000001 0000000000000000 0000000000000000 0000000000000000
[ 204.435749] 3fa0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.435755] 3fc0: 0000000000000000 0000000000000000 0000000000000000 000000004121e1a4
[ 204.435761] 3fe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.435765] Call trace:
[ 204.435772] Exception stack(0xffff8000f8223a20 to 0xffff8000f8223b50)
[ 204.435779] 3a20: ffff000008f6ee40 0000ffffffffffff ffff8000f8223c10 ffff0000081a013c
[ 204.435785] 3a40: 00000000000003c5 0000000000000000 0000000000000000 0000000000000000
[ 204.435791] 3a60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.435797] 3a80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.435803] 3aa0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.435809] 3ac0: 0000000000000000 0000000000000000 0000000000000000 0000000000040980
[ 204.435817] 3ae0: ffff8000f8006700 ffff8000f80f3010 ffff000008f6ee78 0000000000000000
[ 204.435825] 3b00: ffff8000f8223c10 0000000000000001 0000000000000018 0000000000000000
[ 204.435833] 3b20: 00000032b5503510 ffff000008081800 0000000000001000 0000000000000000
[ 204.435837] 3b40: 0000000034d5d91d 0000000000000000
[ 204.435848] [<ffff0000081a013c>] __buffer_unlock_commit+0x24/0xe8
[ 204.435856] [<ffff0000081a0de8>] trace_function+0x78/0x88
[ 204.435866] [<ffff0000081a7cd4>] function_trace_call+0x11c/0x158
[ 204.435874] [<ffff0000081962ec>] ftrace_ops_no_ops+0xec/0x1c8
[ 204.435886] [<ffff00000809440c>] ftrace_graph_call+0x0/0x14
[ 204.435895] [<ffff0000080a09d8>] post_ttbr_update_workaround+0x10/0x28
[ 204.435906] [<ffff0000080976d8>] __cpu_suspend_exit+0xa8/0x148
[ 204.435914] [<ffff000008097840>] cpu_suspend+0xc8/0xd8
[ 204.435927] [<ffff0000087337f8>] psci_cpu_suspend_enter+0x80/0xb0
[ 204.435935] [<ffff0000080978e0>] arm_cpuidle_suspend+0x38/0x48
[ 204.435945] [<ffff000008707818>] arm_enter_idle_state+0x40/0x70
[ 204.435956] [<ffff000008705600>] cpuidle_enter_state+0x80/0x378
[ 204.435964] [<ffff00000870596c>] cpuidle_enter+0x34/0x48
[ 204.435975] [<ffff00000811af34>] call_cpuidle+0x44/0x68
[ 204.435983] [<ffff00000811b254>] cpu_startup_entry+0x184/0x208
[ 204.435992] [<ffff000008090da4>] secondary_start_kernel+0x16c/0x1c0
[ 204.435998] [<000000004121e1a4>] 0x4121e1a4
[ 204.436011] Code: 91390273 9100e262 910003e4 d538d083 (38236845)
[ 204.436019] Internal error: Oops: 96000047 [#2] PREEMPT SMP
[ 204.436022] ---[ end trace 9e1e78706f9efe0e ]---
[ 204.436026] Modules linked in:
[ 204.436029] Kernel panic - not syncing: Attempted to kill the idle task!
[ 204.436035] CPU: 3 PID: 0 Comm: swapper/3 Tainted: G D 4.9.128-arvilla-1.1-snapshot-20190904+ga6c748d #1
[ 204.436037] SMP: stopping secondary CPUs
[ 204.436040] Hardware name: Appareo Systems Arvilla 2 (DT)
[ 204.436044] task: ffff8000f8211a00 task.stack: ffff8000f8228000
[ 204.436053] PC is at __buffer_unlock_commit+0x24/0xe8
[ 204.436061] LR is at trace_function+0x78/0x88
[ 204.436067] pc : [<ffff0000081a013c>] lr : [<ffff0000081a0de8>] pstate: 000003c5
[ 204.436071] sp : ffff8000f822bc10
[ 204.436080] x29: ffff8000f822bc10 x28: ffff8000f8228000
[ 204.436088] x27: 0000000000000008 x26: ffff000008f71e58
[ 204.436098] x25: 0000002f97d72a02 x24: ffff000008faa498
[ 204.436106] x23: ffff0000080976d4 x22: ffff0000080a09d4
[ 204.436115] x21: ffff0000080976d4 x20: ffff8000f8290010
[ 204.436123] x19: ffff000008f6ee40 x18: 0000000000000000
[ 204.436132] x17: 0000000000000000 x16: 0000000000000000
[ 204.436140] x15: 0000000000000000 x14: 0000000000000000
[ 204.436148] x13: 0000000000000000 x12: 0000000034d5d91d
[ 204.436156] x11: 0000000000000000 x10: 0000000000001000
[ 204.436165] x9 : ffff000008081800 x8 : 00000032b5503510
[ 204.436173] x7 : 0000000000000000 x6 : 0000000000000018
[ 204.436181] x5 : 0000000000000001 x4 : ffff8000f822bc10
[ 204.436189] x3 : 0000000000000000 x2 : ffff000008f6ee78
[ 204.436198] x1 : ffff8000f8290010 x0 : ffff8000f8006700
[ 204.436200]
[ 204.436205] Process swapper/3 (pid: 0, stack limit = 0xffff8000f8228020)
[ 204.436209] Stack: (0xffff8000f822bc10 to 0xffff8000f822c000)
[ 204.436215] bc00: ffff8000f822bc40 ffff0000081a0de8
[ 204.436222] bc20: ffff8000f8006700 ffff8000f8290010 ffff8000f822bc40 ffff0000081a0da8
[ 204.436229] bc40: ffff8000f822bc70 ffff0000081a7cd4 0000000000000000 ffff000008faa290
[ 204.436236] bc60: 0000000000000800 ffff0000080a09d4 ffff8000f822bc90 ffff0000081962ec
[ 204.436244] bc80: ffff000008fd07f0 ffff0000081962c8 ffff8000f822bd10 ffff00000809440c
[ 204.436254] bca0: 0000000000000003 00000000000001c0 ffff000008733288 0000000000000001
[ 204.436261] bcc0: ffff000009056da8 0000000000000001 ffff000008a490c8 ffff000008a490c8
[ 204.436267] bce0: ffff000008a490c8 ffff000008a490c8 ffff000009056da8 0000000000040980
[ 204.436274] bd00: ffff8000f822bd10 0000000000040980 ffff8000f822bd20 ffff0000080a09d8
[ 204.436281] bd20: ffff8000f822bd30 ffff0000080976d8 ffff8000f822bd50 ffff000008097840
[ 204.436288] bd40: ffff000008faa290 ffff0000080977dc ffff8000f822be60 ffff0000087337f8
[ 204.436295] bd60: 0000000000000001 ffff000009056e20 ffff8000f87cc000 0000000000000001
[ 204.436301] bd80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.436307] bda0: 0000000000000000 0000000000000000 0000000000300000 00000032b5503510
[ 204.436314] bdc0: ffff000008081800 0000000000001000 0000000000000008 0000000034d5d91d
[ 204.436321] bde0: ffff8000f822bd50 ffff000009056e20 ffff8000f822bd50 ffff0000080977dc
[ 204.436328] be00: ffff000008faa290 00000000000001c0 ffff000008733288 0000000000000001
[ 204.436334] be20: ffff000009056da8 0000000000000001 0000002f97d72a02 ffff000008f71e58
[ 204.436341] be40: 0000000000000008 ffff8000f8228000 ffff8000f822be60 0000000000040980
[ 204.436348] be60: ffff8000f822be80 ffff0000080978e0 0000000000000001 ffff0000080978c0
[ 204.436355] be80: ffff8000f822bea0 ffff000008707818 0000000000000001 0000000000040980
[ 204.436361] bea0: ffff8000f822bec0 ffff000008705600 ffff000009056e08 ffff000009056e20
[ 204.436368] bec0: ffff8000f822bf10 ffff00000870596c ffff8000f87cc000 ffff000009056da8
[ 204.436375] bee0: 0000000000000001 ffff0000090a6446 ffff000008faa384 ffff000008faa378
[ 204.436382] bf00: 0000000000000001 ffff000008f71e58 ffff8000f822bf40 ffff00000811af34
[ 204.436389] bf20: ffff8000f87cc000 ffff000009056da8 0000000000000001 ffff00000811af14
[ 204.436396] bf40: ffff8000f822bf70 ffff00000811b254 ffff8000f87cc000 ffff000008faa2e8
[ 204.436403] bf60: ffff000009056da8 ffff000008faa2e8 ffff8000f822bfd0 ffff000008090da4
[ 204.436409] bf80: 0000000000000003 0000000000000000 0000000000000000 0000000000000000
[ 204.436415] bfa0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.436422] bfc0: 0000000000000000 0000000000000000 0000000000000000 000000004121e1a4
[ 204.436429] bfe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.436432] Call trace:
[ 204.436437] Exception stack(0xffff8000f822ba20 to 0xffff8000f822bb50)
[ 204.436444] ba20: ffff000008f6ee40 0000ffffffffffff ffff8000f822bc10 ffff0000081a013c
[ 204.436450] ba40: 00000000000003c5 0000000000000000 0000000000000000 0000000000000000
[ 204.436456] ba60: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.436462] ba80: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 204.436470] baa0: 0000000000000000 0000000000000000 0000000000000000 0000000[0 200983
77] bac0: 0000000000000000 0000000000000000 0000000000000000 0000000000040980
[ 204.43[6 4 9210]4 .b4b30604:9 1fffb000fff2bc100f800b000 0000001 00000001 0000010 00000008000000000
0000000
00001000 000000000000000034605:0000b040:34d0d91003000d91d 0000000
[ 204.4[3 6 522024]. 4[3<6f5f2f]0[<0fff00d00>1atda8>] tnaceon+0xti/0x8x
20x88e
1c8204.4[3 6 523064]. 4[3<6f5f3f600[<fff900000819trac>_opt_nc_opps0nec/0x+c8ec50
[ 204.4[3 6 525014]. 4[3<6f5f5f10 0<ffff09080] ao9d8>tbp_stdtte__opdare_workaround+0x10/0x28
[ 204.4[3 6 526084]. 4[3<6f5f6f80 00080908400] cpu4s>] cpd_sucpe0xd0
8/0xd88
[ 204.4[3 6 528054]. 4[3<6f5f8f5]0[00f090000>]0arme0>]idre_cpspdnd_suspe0d+8
80
48
[ 204.4[3 6 620004]. 4[3<6f6f0f0] [<0f70560008 c5u00>e_epuir_etenee0x8tatx+08
/0x378
[ 204.[4 3 6260145.]4 3[6<6f1f5ff0<000810af04>] c3ll]cpald_cp0id4/+0x8
0x68
[ 204.4[3 6 623014]. 4[3<6f6f3f10 0<f8ff0da0>] 9eca4dars_sondark_stert_xerc/0+0x16c/0x1c0
[ 204.4[3 6 624074]. 4C3o6d6e4:79 C9de73 91002732 900e0324910003e4 d538d083 (38236845)
[ 205.5[1 6 029085]. 5S1M6P0:9 ]aiMPd to seop secoopasecCPUa 1-CPUs 1-3
[ 205.[5 1 6210055.]5 1M6e1m0o5ry Lioiy iont
boed
[ 205.62[4 2 5290]5 .U6n2a4b2l5e9t habdletoernndlpaginneleqaestgareqiesu l virtus aff000s 8fff2000
8f6c278
[ 205.634006[] U2n0a5b.l6e3 4t06]aUdae eern handle kernel paging request at virtual address ffff000008f6c278
[ 205.643839][ U n2a0b5l.e6 4t3 handUe blr tl handle kernel paging request at virtual address ffff000008f6c278
[ 205.653759][ U n2a0b5l.e6 5t37h9ndlnaklenel handle kernel paging request at virtual address ffff000008f6c278
[ 205.66[3 6 8200]5 .U6n6a3b6l8e]tUnhale e kerndle kernel paging request at virtual address ffff000008f6c278
[ 205.673339[] U2n0a5b.l6e7 3to9]annable roelandle kernel paging request at virtual address ffff000008f6c278
[ 205.683172[] U2n0a5b.l6e8 3to2] Unlbleeto landle kernel paging request at virtual address ffff000008f6c278
[ 205.69[3 0 0250]5 .U6n9a3b0l0 ] Uhablle o ranlle kernel paging request at virtual address ffff000008f6c278
[ 205.70[2 6 6250]5 .U7n0a2b6l6e] onabnd tokhrnele kernel paging request at virtual address ffff000008f6c278
[ 205.71[2 3 2250]5 .U7n1a2b3l2 ]oUnanll toernedle kernel paging request at virtual address ffff000008f6c278
[ 205.721[9 8 42]0 5U.n7a2b1l9e8t] hnadle te nendle kernel paging request at virtual address ffff000008f6c278
[ 205.73[1 7 3200]5 .U7n3a1b7l3e]tU ablelto handle kernel paging request at virtual address ffff000008f6c278
[ 205.741390][ U n2a0b5l.e7 4t1 han Unable tl handle kernel paging request at virtual address ffff000008f6c278
[ 205.75[1 3 1200]5 .U7n5a1b3l1e U abnele eandle kernel paging request at virtual address ffff000008f6c278
[ 205.76[0 9 6290]5 .U7n6a0b9l6 ] Unanlee oernnlle kernel paging request at virtual address ffff000008f6c278
[ 205.77062[8 ] 2U0n5a.b7l7e0 6o8]aUnaele toehandle kernel paging request at virtual address ffff000008f6c278
[ 205.78[0 4 6210]5 .U7n8a0b4l6e] Unabne to hrndle kernel paging request at virtual address ffff000008f6c278
[ 205.790120[] U2n0a5b.l7e9 0to0haUdlele to landle kernel paging request at virtual address ffff000008f6c278
[ 205.79[9 9 5220]5 .U7n9a9b9l5e ] nandee oehnelle kernel paging request at virtual address ffff000008f6c278
[ 205.809695] pgd = ffff8000f9bbe000