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

 

 

posted on 2020-12-17 15:47  tycoon3  阅读(307)  评论(0编辑  收藏  举报

导航