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
     
  • 相关阅读:
    常用的站内搜索技术比较
    .NET中读取csv文件内容
    C#编码规范
    处理模型——检测光标是否在模型上
    数据库如何规范命名
    处理顶点——绘制三角形,线和点
    处理模型——根据地形正确倾斜模型
    处理顶点——使用索引移除冗余顶点
    处理顶点——在三角形上添加纹理
    处理模型——通过定义一个自定义的TypeWriter和TypeReader将多个对象存储在Tag属性中
  • 原文地址:https://www.cnblogs.com/dream397/p/14150068.html
Copyright © 2011-2022 走看看