1. 02 2月, 2012 2 次提交
  2. 27 10月, 2011 1 次提交
  3. 02 5月, 2011 1 次提交
  4. 26 4月, 2011 1 次提交
  5. 17 2月, 2011 2 次提交
    • L
      linux-user: in linux-user/strace.c, tswap() is useless · d2ee72a5
      Laurent Vivier 提交于
      Syscall parameters are already swapped by the caller.
      
      This patch removes useless tswap() from strace.c
      
      $ QEMU_STRACE=1 chroot /m68k mknod myramdisk b 1 1
      with tswap()
      ...
      29944 mknod("myramdisk",026630200000) = 0
      ...
      
      without tswap()
      
      ...
      30042 mknod("myramdisk",S_IFBLK|0666,makedev(1,1)) = 0
      ...
      
      natively:
      
      $ strace touch mytouch
      ...
      open("mytouch", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK, 0666) = 3
      ...
      
      $ QEMU_STRACE=1 chroot /m68k touch mytouch
      with tswap()
      ...
      30368 open("/usr/share/locale/locale.alias",O_RDONLY) = 3
      30368 fstat64(50331648,0x4080032c) = 0
      ...
      30368 open("mytouch",O_RDONLY|O_CREAT|O_LARGEFILE|O_NOCTTY|O_NONBLOCK|0x1) = 0
      ...
      without tswap()
      ...
      30572 open("/usr/share/locale/locale.alias",O_RDONLY) = 3
      30572 fstat64(3,0x4080032c) = 0
      ...
      30572 open("mytouch",O_WRONLY|O_CREAT|O_LARGEFILE|O_NOCTTY|O_NONBLOCK,0666) = 0
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      
      Fixes by Riku Voipio: add casts
      Signed-off-by: NRiku Voipio <riku.voipio@nokia.com>
      d2ee72a5
    • L
      linux-user: add rmdir() strace · 4de596cb
      Laurent Vivier 提交于
      Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: NRiku Voipio <riku.voipio@nokia.com>
      4de596cb
  6. 09 2月, 2011 2 次提交
  7. 16 6月, 2010 1 次提交
  8. 20 2月, 2010 1 次提交
  9. 19 6月, 2009 1 次提交
    • R
      linux-user: strace now handles guest stringscorrectly [v2] · 03dfe9f8
      Riku Voipio 提交于
      On Tue, Jun 16, 2009 at 08:19:23PM -0500, Anthony Liguori wrote:
      > malc wrote:
      >>
      >> On my system the above line causes gcc to emit:
      >>
      >> In file included from /home/malc/x/rcs/git/qemu/linux-user/strace.c:12:
      >> /usr/include/linux/futex.h:48: error: field `__user' has incomplete type
      >> /usr/include/linux/futex.h:48: error: syntax error before '*' token
      >> /usr/include/linux/futex.h:63: error: field `list' has incomplete type
      >> /usr/include/linux/futex.h:83: error: field `__user' has incomplete type
      >> /usr/include/linux/futex.h:83: error: syntax error before '*' token
      >> make[1]: *** [strace.o] Error 1
      
      > We had the same problem with usb-linux.c.  It's broken system headers,
      > the __user stuff is supposed to get removed as part of the headers
      > installation.
      
      > It builds fine on my system (Fedora 10).
      
      Howabout something like this:
      
      commit eb8387cb0eda32a18880664eb5f0ca5c8bf05b45
      Author: Riku Voipio <riku.voipio@iki.fi>
      Date:   Thu Jun 18 22:44:31 2009 +0300
      Subject: linux-user: include futex defines directly
      
      Since some common distributions have broken linux/futex.h, stop
      including it. Instead add the defines directly.
      Signed-off-by: NRiku Voipio <riku.voipio@iki.fi>
      03dfe9f8
  10. 16 6月, 2009 1 次提交
  11. 23 12月, 2008 1 次提交
  12. 13 12月, 2008 1 次提交
  13. 04 10月, 2008 1 次提交
  14. 01 10月, 2008 1 次提交
  15. 14 9月, 2008 1 次提交
  16. 29 5月, 2008 1 次提交
  17. 15 11月, 2007 1 次提交
  18. 12 11月, 2007 2 次提交
  19. 11 11月, 2007 1 次提交
  20. 03 11月, 2007 1 次提交
  21. 01 11月, 2007 1 次提交