首页 > 其他分享 >[小技巧] Minicom和QEMU中触发magic sysrq

[小技巧] Minicom和QEMU中触发magic sysrq

时间:2023-05-04 19:32:29浏览次数:48  
标签:current console dump Minicom Will sysrq magic your


minicom中触发magic sysrq键:

对于minicom,命令序列:“ctrl-a f”将启动一个中断序列。因此,命令:“ctrl-a f m”将显示有关系统内存的信息。


*  What are the 'command' keys?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'b'     - Will immediately reboot the system without syncing or unmounting
          your disks.

'c' - Will perform a kexec reboot in order to take a crashdump.

'd' - Shows all locks that are held.

'e'     - Send a SIGTERM to all processes, except for init.

'f' - Will call oom_kill to kill a memory hog process.

'g' - Used by kgdb on ppc and sh platforms.

'h'     - Will display help (actually any other key than those listed
          above will display help. but 'h' is easy to remember :-)

'i'     - Send a SIGKILL to all processes, except for init.

'k'     - Secure Access Key (SAK) Kills all programs on the current virtual
          console. NOTE: See important comments below in SAK section.

'm'     - Will dump current memory info to your console.

'n' - Used to make RT tasks nice-able

'o'     - Will shut your system off (if configured and supported).

'p'     - Will dump the current registers and flags to your console.

'q'     - Will dump a list of all running timers.

'r'     - Turns off keyboard raw mode and sets it to XLATE.

's'     - Will attempt to sync all mounted filesystems.

't'     - Will dump a list of current tasks and their information to your
          console.

'u'     - Will attempt to remount all mounted filesystems read-only.

'v' - Dumps Voyager SMP processor info to your console.

'w' - Dumps tasks that are in uninterruptable (blocked) state.

'x' - Used by xmon interface on ppc/powerpc platforms.

'0'-'9' - Sets the console log level, controlling which kernel messages
          will be printed to your console. ('0', for example would make
          it so that only emergency messages like PANICs or OOPSes would
          make it to your console.)



QEMU中触发magic sysrq键:


<Ctrl-a b>

Send break (magic sysrq in Linux) 



参考:

http://en.wikipedia.org/wiki/Magic_SysRq_key

http://wiki.qemu.org/download/qemu-doc.html

标签:current,console,dump,Minicom,Will,sysrq,magic,your
From: https://blog.51cto.com/u_16097040/6244261

相关文章

  • G2 - Magic Triples (Hard Version)
    题解:值域分治,降低时间复杂度到n*1000+map代码1:点击查看代码#include<bits/stdc++.h>usingnamespacestd;typedeflonglongLL;typedefpair<int,int>PLL;#defineIOScin.tie(nullptr)->sync_with_stdio(false);#definesesecond#definefifirst#definemem(a,b)......
  • PHP8编译安装报错make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
    make:***[ext/fileinfo/libmagic/apprentice.lo]错误1 解决:当配置PHP时出现make:***[ext/fileinfo/libmagic/apprentice.lo]Error1时是因为服务器内存不足1G只需要在配置命令中添加--disable-fileinfo即可......
  • CF1822G2 - Magic Triples
    比较好的题目,别的不说,G1对G2有着不错的启发性。首先,因为\(b>0,a_k\le10^9\),所以\(b\)不可能超过\(\sqrt{a}\)考虑对\(b\)分类讨论,设置一个阈值\(B\),先处理\(b=1\)的情况,其实就是取三个相同的数然后排列,可以比较简单的排序之后做到\(O(n)\)。接着手写一个哈希表用......
  • nginx-lua-fastdfs-GraphicsMagick整合
      无意发现了一个不错的分布式文件系统。fastdfs开源的分布式文件系统,此脚本利用nginxlua模块,动态生成图片缩略图,fastdfs只存一份原图。lua通过socket获取fastdfs的原图,并存放到本地,根据不同规则url,例如:_60x60.jpg、_80x80.jpg,类似淘宝图片url规则。利用gm命令生成本地缩略图......
  • php imagick实现文字渐变
     参考文档: https://fengkui.net/articles/117 //实现css background:linear-gradient(-66deg,rgba(222,162,79,0.9)0%,rgba(255,236,161,0.94)39.74609375%,#DEA24F100%);publicfunctiondrawPrice($priceText){//创建新的画布对象和透......
  • linux minicom的使用
    1.使用执行minicom-s,弹出以下菜单 使用向下键跳至第三项,回车,可以在这里修改port在此菜单中,输入A/B/C可以跳至对应项,修改后,回车即可退出到上一层级跳至Exit,回车即可进入minicom,再回车几次即可进入命令行2.退出在使用终端输入minicom进入传输时,是无法直接退出的,需要使......
  • Java Magic start
    1.JavaMagic.Part1:java.net.URLhttp://mishadoff.com/blog/java-magic-part-1-java-dot-net-dot-url/ 2.JavaMagic.Part2:0xCAFEBABEhttp://mishadoff.com/blog/java-magic-part-2-0xcafebabe/ 3.JavaMagic.Part3:Finallyhttp://mishadoff.com/blog/java-magic-p......
  • Java Magic. Part 4: sun.misc.Unsafe(译)
    JavaMagic.Part4:sun.misc.UnsafeJavaisasafeprogramminglanguageandpreventsprogrammerfromdoingalotofstupidmistakes,mostofwhichbasedonmemorymanagement.But,thereisawaytodosuchmistakesintentionally,usingUnsafeclass.Java是一种......
  • Clouds remind me that magical things in life can come out of nowhere
    Cloudscanalsotransportmeawayfromthedullerpartsoflife,awayfromboringsituationsandawayfromdaytodaystressesandworries.Theygetmeoutofmyheadandintoadreamscape,amagicallookinglandscapethatfloatsabovemewhereIcanimag......
  • magicos7.1和7.0的区别
    荣耀MagicOS7.1操作系统是在荣耀MagicOS7.0操作系统的基础上做的升级,MagicOS7.1操作系统相比较MagicOS7.0操作系统到底有了哪些升级也是大家比较关注的问题。magicos7.1和7.0的区别介绍 1、MagicOS7.1操作系统将MagicOS7.0操作系统的荣耀备忘录升级为了荣耀笔记,可以快速......