Lines Matching +full:use +full:- +full:ram +full:- +full:code
9 ------------
11 Ramoops is an oops/panic logger that writes its logs to RAM before the system
13 needs a system with persistent RAM so that the content of that area can
17 ----------------
30 mapping to pgprot_writecombine. Setting ``mem_type=1`` attempts to use
56 to life (i.e. a watchdog triggered). In such cases, RAM may be somewhat
60 ----------------------
64 A. Use the module parameters (which have the names of the variables described
66 boot and then use the reserved memory for ramoops. For example, assuming a
68 the kernel to use only the first 128 MB of memory, and place ECC-protected
73 B. Use Device Tree bindings, as described in
74 ``Documentation/devicetree/bindings/reserved-memory/ramoops.yaml``.
77 reserved-memory {
78 #address-cells = <2>;
79 #size-cells = <2>;
85 record-size = <0x4000>;
86 console-size = <0x4000>;
90 C. Use a platform device and set the platform data. The parameters can then
93 .. code-block:: c
134 You can specify either RAM memory or peripheral devices' memory. However, when
135 specifying RAM, be sure to reserve the memory by issuing memblock_reserve()
136 very early in the architecture code, e.g.::
143 -----------
149 ----------------
152 files is ``dmesg-ramoops-N``, where N is the record number in memory. To delete
153 a stored record from RAM, simply unlink the respective pstore file.
156 ---------------------------
159 related hangs. The functions call chain log is stored in a ``ftrace-ramoops``
162 # mount -t debugfs debugfs /sys/kernel/debug/
164 # reboot -f
166 # mount -t pstore pstore /mnt/
167 # tail /mnt/ftrace-ramoops
168 0 ffffffff8101ea64 ffffffff8101bcda native_apic_mem_read <- disconnect_bsp_APIC+0x6a/0xc0
169 0 ffffffff8101ea44 ffffffff8101bcf6 native_apic_mem_write <- disconnect_bsp_APIC+0x86/0xc0
170 0 ffffffff81020084 ffffffff8101a4b5 hpet_disable <- native_machine_shutdown+0x75/0x90
171 0 ffffffff81005f94 ffffffff8101a4bb iommu_shutdown_noop <- native_machine_shutdown+0x7b/0x90
172 …0 ffffffff8101a6a1 ffffffff8101a437 native_machine_emergency_restart <- native_machine_restart+0…
173 0 ffffffff811f9876 ffffffff8101a73a acpi_reboot <- native_machine_emergency_restart+0xaa/0x1e0
174 …0 ffffffff8101a514 ffffffff8101a772 mach_reboot_fixups <- native_machine_emergency_restart+0xe2/…
175 …0 ffffffff811d9c54 ffffffff8101a7a0 __const_udelay <- native_machine_emergency_restart+0x110/0x1…
176 0 ffffffff811d9c34 ffffffff811d9c80 __delay <- __const_udelay+0x30/0x40
177 0 ffffffff811d9d14 ffffffff811d9c3f delay_tsc <- __delay+0xf/0x20