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
     
  • 相关阅读:
    用JS + WCF打造轻量级WebPart
    提高WCF服务并发能力的简单处理办法
    利用JQuery实现更简单的Ajax跨域请求
    WCF Testing Tool(转)
    [转贴]一个有趣的布局
    [转贴].net中上传视频并将各种视频文件转换成.flv格式
    IE5,IE6,IE7,IE8的css兼容性列表[转自MSDN]
    [转贴]Castle 开发系列文章
    ie6,ie7,ff 的css兼容hack写法
    ExtJs学习笔记(23)ScriptTagProxy+XTemplate+WCF跨域取数据
  • 原文地址:https://www.cnblogs.com/dream397/p/14150068.html
Copyright © 2011-2022 走看看