1. 05 Apr, 2013 1 commit
  2. 11 Mar, 2013 2 commits
  3. 30 Jan, 2013 1 commit
  4. 04 Aug, 2012 1 commit
  5. 02 Feb, 2012 2 commits
  6. 27 Oct, 2011 1 commit
  7. 02 May, 2011 1 commit
  8. 26 Apr, 2011 1 commit
  9. 17 Feb, 2011 2 commits
    • Laurent Vivier's avatar
      linux-user: in linux-user/strace.c, tswap() is useless · d2ee72a5
      Laurent Vivier authored
      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: default avatarLaurent Vivier <laurent@vivier.eu>
      
      Fixes by Riku Voipio: add casts
      Signed-off-by: default avatarRiku Voipio <riku.voipio@nokia.com>
      d2ee72a5
    • Laurent Vivier's avatar
      linux-user: add rmdir() strace · 4de596cb
      Laurent Vivier authored
      Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
      Signed-off-by: default avatarRiku Voipio <riku.voipio@nokia.com>
      4de596cb
  10. 09 Feb, 2011 2 commits
  11. 16 Jun, 2010 1 commit
  12. 19 Feb, 2010 1 commit
  13. 18 Jun, 2009 1 commit
    • Riku Voipio's avatar
      linux-user: strace now handles guest stringscorrectly [v2] · 03dfe9f8
      Riku Voipio authored
      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: default avatarRiku Voipio <riku.voipio@iki.fi>
      03dfe9f8
  14. 16 Jun, 2009 1 commit
  15. 22 Dec, 2008 1 commit
  16. 13 Dec, 2008 1 commit
  17. 03 Oct, 2008 1 commit
  18. 30 Sep, 2008 1 commit
  19. 14 Sep, 2008 1 commit
  20. 29 May, 2008 1 commit
  21. 14 Nov, 2007 1 commit
  22. 11 Nov, 2007 3 commits
  23. 03 Nov, 2007 1 commit
  24. 31 Oct, 2007 1 commit