0a870586405ef425760d7681d5ac092bb022365e |
|
25-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
block_ioctl: quote strings * block.c (print_blkpg_req): Print blkpg_partition.devname and blkpg_partition.volname using print_quoted_string. (block_ioctl): Print blk_user_trace_setup.name using print_quoted_string.
/external/strace/block.c
|
c7afb4881f14e44968f3a78ae5988f04ecc66b68 |
|
19-Jan-2015 |
Dmitry V. Levin <ldv@altlinux.org> |
ioctl: assume that all ioctl commands have unsigned int type In linux, ioctl command number has a 32-bit unsigned integer type: fs/ioctl.c:SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, unsigned long, arg) If the kernel completely ignores other bits on 64-bit architectures, why should strace care? Let's follow the kernel and treat it as unsigned int. * defs.h (struct_ioctlent): Change "code" type to "unsigned int". (ioctl_decode, ioctl_lookup, block_ioctl, loop_ioctl, mtd_ioctl, ubi_ioctl, ptp_ioctl, scsi_ioctl, sock_ioctl, term_ioctl, rtc_ioctl, v4l2_ioctl): Likewise. * ioctl.c (ioctl_decode, ioctl_lookup, compare, ioctl_next_match): Likewise. * block.c (block_ioctl): Likewise. * loop.c (loop_ioctl): Likewise. * mtd.c (mtd_ioctl, ubi_ioctl): Likewise. * ptp.c (ptp_ioctl): Likewise. * scsi.c (scsi_ioctl): Likewise. * sock.c (sock_ioctl): Likewise. * term.c (term_ioctl): Likewise. * time.c (rtc_ioctl): Likewise. * v4l2.c (v4l2_ioctl): Likewise. * ioctlsort.c (struct ioctlent, compare, main): Likewise.
/external/strace/block.c
|
5b88608b296c44c67ffa25900b8c2e496c2b41a4 |
|
21-Nov-2014 |
Mike Frysinger <vapier@gentoo.org> |
Decode FIFREEZE/FITHAW/FITRIM ioctls The freeze/thaw ones are simple, but the trim is an interesting struct. * block.c (block_ioctl): Handle FIFREEZE/FITHAW/FITRIM. * ioctl.c (ioctl_decode): Pass 'X' ioctls to block_ioctl.
/external/strace/block.c
|
0ed617bd66624cec6138102545d73b2e2346f1f6 |
|
26-Apr-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Generate xlat/*.in files Automatically convert xlat structures from *.c files to xlat/*.in files using "./generate_xlat_in.sh *.c" command.
/external/strace/block.c
|
594527353359d9a6aad516992e09c393e11f3bd2 |
|
05-Feb-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Use XLAT_END macro Automatically update all xlat structures using the following sed regexp: s/^[[:space:]]*{[[:space:]]*0[[:space:]]*,[[:space:]]*NULL[[:space:]]*,\?[[:space:]]*}[[:space:]]*,\?[[:space:]]*/\tXLAT_END/
/external/strace/block.c
|
bce0cc6a2d103e1da4c15a4c5396fdc5676294f7 |
|
05-Feb-2014 |
Dmitry V. Levin <ldv@altlinux.org> |
Use XLAT macro Automatically convert all xlat structures to XLAT form using the following sed regexp: s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
/external/strace/block.c
|
7672946e74caa5b7cbc406a6dee4a94638fcf586 |
|
05-Mar-2013 |
Denys Vlasenko <vda.linux@googlemail.com> |
Fix wrongly indented closing curly brace. No code changes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/block.c
|
61d62cf9481f100f76f1e8a2dfe131f638566633 |
|
16-Apr-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Stop using %h[h]u format specifiers This is needed for simplified printf, and reduces code size a bit. * block.c (block_ioctl): Cast the value to unsinged and use %u instead of using %hu. * desc.c (sys_io_cancel): Likewise. * resource.c (sys_sysinfo): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/block.c
|
a6d91ded3f2d5401e09a9c2fa442aabfbfe593a8 |
|
16-Mar-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Tidy up includes and copyright notices, fix indentation The files not mentioned in changelog below had only copyright notices fixes and indentation fixes. * defs.h: Include <stdint.h> and <inttypes.h>. * file.c: Do not include <inttypes.h>. Move struct kernel_dirent declaration below top include block. * block.c: Do not include <stdint.h> and <inttypes.h>. * quota.c: Likewise. * desc.c: Likewise. * signal.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/block.c
|
ed720fda5d515f1359fcd3242223e553d1216789 |
|
25-Feb-2012 |
Denys Vlasenko <vda.linux@googlemail.com> |
Automated removal of non-Linux code This change is generated by running every source through the following command: unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
/external/strace/block.c
|
60fe8c139c6f2febefe595781812ddf0864a6ab8 |
|
01-Sep-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Use tprints with literal strings, it may be faster than tprintf * bjm.c: Replace tprintf("str") with tprints("str"). * block.c: Likewise. * desc.c: Likewise. * file.c: Likewise. * io.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * resource.c: Likewise. * scsi.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/block.c
|
25caa318eedf38200cd7660320d95bf4662c6c5b |
|
16-Aug-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix compilation on linux 2.4.x * configure.ac: Check for BLKGETSIZE64. * block.c (block_ioctl): Check for HAVE_BLKGETSIZE64.
/external/strace/block.c
|
5bd67c86a93c658d258348e8f14af94fd45cbeb6 |
|
15-Aug-2011 |
Denys Vlasenko <dvlasenk@redhat.com> |
Fix compilation on 2.4.20 kernel based system * block.c (block_ioctl): add ifdef/endif around BLKGETSIZE64 usage * strace.c (trace): add ifdef/endif around WIFCONTINUED usage Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
/external/strace/block.c
|
4cee0af77b0275740f7f97ae5d778f60d5ac7f88 |
|
07-Apr-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Fix BLKTRACESTOP definition * block.c: Fix typo in the check for BLKTRACESTOP. Reported by Gabor Z. Papp.
/external/strace/block.c
|
be284cae112d71a0073e24b34e16a63f31b32fd8 |
|
17-Jan-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
block.c: cleanup * block.c: Include <inttypes.h>. (print_blkpg_req): Always decode struct blkpg_ioctl_arg. Robustify decoding of strings. (block_ioctl): Do not decode return values passed by pointers on exit from failed syscalls. Use format macros from inttypes.h to print values of type uint64_t.
/external/strace/block.c
|
4ef6db489a8a51ae03ffb78b58c679162a39f3c3 |
|
15-Jan-2011 |
Dmitry V. Levin <ldv@altlinux.org> |
Add block ioctl support * block.c: New file. * Makefile.am (strace_SOURCES): Add it. * defs.h [LINUX] (block_ioctl): New function. * ioctl.c (ioctl_decode) [LINUX]: Use it to decode HDIO_* and BLK* ioctls. Patch by Jeff Mahoney <jeffm@suse.com>
/external/strace/block.c
|