zoukankan      html  css  js  c++  java
  • strace 跟踪文件

    strace -o firecracker.output firecracker --api-sock /tmp/firecracker.socket
    strace -ff -o log.runsc docker run --runtime=runsc-kvm --rm hello-world
    strace -xfc a.out,
    strace -fe trace=file 

    qemu-system-aarch64: -device virtio-net-pci,netdev=mynet1,mac=00:00:00:00:00:01,mrg_rxbuf=off: failed to find romfile "efi-virtio.rom"

    [pid 30492] openat(AT_FDCWD, "initramfs-4.18", O_RDONLY) = 24
    [pid 30492] faccessat(AT_FDCWD, "efi-virtio.rom", R_OK) = -1 ENOENT (No such file or directory)
    [pid 30492] faccessat(AT_FDCWD, "/usr/local/bin/../share/qemu/qemu-firmware/efi-virtio.rom", R_OK) = -1 ENOENT (No such file or directory)
    [pid 30492] faccessat(AT_FDCWD, "/usr/local/bin/../share/qemu/qemu/efi-virtio.rom", R_OK) = -1 ENOENT (No such file or directory)
    [pid 30492] openat(AT_FDCWD, "efi-virtio.rom", O_RDONLY) = -1 ENOENT (No such file or directory)
    qemu-system-aarch64: -device virtio-net-pci,netdev=mynet1,mac=00:00:00:00:00:01,mrg_rxbuf=off: failed to find romfile "efi-virtio.rom"
    [pid 30504] +++ exited with 1 +++
    [pid 30502] +++ exited with 1 +++
    [pid 30494] +++ exited with 1 +++
    [pid 30496] +++ exited with 1 +++
    [pid 30493] +++ exited with 1 +++
    +++ exited with 1 +++
    [root@localhost ovs]# ls /usr/local/bin/../share/qemu/qemu/
    ls: cannot access /usr/local/bin/../share/qemu/qemu/: No such file or directory

    qemu安装

    复制代码

    Installing /data1/qemu5.1/qemu/pc-bios/efi-eepro100.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/efi-ne2k_pci.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/efi-pcnet.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/efi-rtl8139.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/efi-virtio.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/efi-e1000e.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/efi-vmxnet3.rom to /usr/share/qemu/qemu
    Installing /data1/qemu5.1/qemu/pc-bios/qemu-nsis.bmp to /usr/share/qemu/qemu
    复制代码
     
     
    ln -s  /usr/share/qemu/qemu/   /usr/local/share/qemu/qemu
     
     
    strace   -o trace.out   -xfc ./demo1
    step 1: unrestricted
    step 2: only 'read', 'write', '_exit' and 'sigreturn' syscalls
    Killed
    root@cloud:/nsexec/seccomp# cat trace.out 
    % time     seconds  usecs/call     calls    errors syscall
    ------ ----------- ----------- --------- --------- ----------------
      0.00    0.000000           0         3         3 faccessat
      0.00    0.000000           0         2           openat
      0.00    0.000000           0         2           close
      0.00    0.000000           0         1           read
      0.00    0.000000           0         2           write
      0.00    0.000000           0         3           fstat
      0.00    0.000000           0         1           prctl
      0.00    0.000000           0         3           brk
      0.00    0.000000           0         1           munmap
      0.00    0.000000           0         1           execve
      0.00    0.000000           0         5           mmap
      0.00    0.000000           0         4           mprotect
    ------ ----------- ----------- --------- --------- ----------------
    100.00    0.000000                    28         3 total
     
  • 相关阅读:
    阿里云在云栖大会发布SaaS加速器3.0版最新成果,让天下没有难做的SaaS
    阿里云重磅发布全域集成解决方案,帮助提升5倍全域集成效率
    2019亚太内容分发大会,阿里云获CDN领袖奖、技术突破奖
    阿里云应用上边缘云解决方案助力互联网All in Cloud
    云栖大会压轴好戏 阿里云智能视频云专场划重点啦!
    阿里云研究员金戈:视频云新“三网一云”,驱动行业应用创新
    阿里云启动视频云V5计划,全面赋能生态合作伙伴
    数据库实例性能调优利器:Performance Insights
    n转m进制标准写法(必须记忆)
    傻逼暴力法画蛇皮矩阵图
  • 原文地址:https://www.cnblogs.com/dream397/p/14150068.html
Copyright © 2011-2022 走看看