qemu-io-cmds.c (aa7bfbfff792538a9eeefe879fc4c629aa0b4203) | qemu-io-cmds.c (4cc70e933731ebf4309e1f1ce90973a0de04f28f) |
---|---|
1/* 2 * Command line utility to exercise the QEMU I/O path. 3 * 4 * Copyright (C) 2009 Red Hat, Inc. 5 * Copyright (c) 2003-2005 Silicon Graphics, Inc. 6 * 7 * This work is licensed under the terms of the GNU GPL, version 2 or later. 8 * See the COPYING file in the top-level directory. --- 1942 unchanged lines hidden (view full) --- 1951 ret = bdrv_debug_breakpoint(bs, argv[1], argv[2]); 1952 if (ret < 0) { 1953 printf("Could not set breakpoint: %s\n", strerror(-ret)); 1954 } 1955 1956 return 0; 1957} 1958 | 1/* 2 * Command line utility to exercise the QEMU I/O path. 3 * 4 * Copyright (C) 2009 Red Hat, Inc. 5 * Copyright (c) 2003-2005 Silicon Graphics, Inc. 6 * 7 * This work is licensed under the terms of the GNU GPL, version 2 or later. 8 * See the COPYING file in the top-level directory. --- 1942 unchanged lines hidden (view full) --- 1951 ret = bdrv_debug_breakpoint(bs, argv[1], argv[2]); 1952 if (ret < 0) { 1953 printf("Could not set breakpoint: %s\n", strerror(-ret)); 1954 } 1955 1956 return 0; 1957} 1958 |
1959static int remove_break_f(BlockDriverState *bs, int argc, char **argv) 1960{ 1961 int ret; 1962 1963 ret = bdrv_debug_remove_breakpoint(bs, argv[1]); 1964 if (ret < 0) { 1965 printf("Could not remove breakpoint %s: %s\n", argv[1], strerror(-ret)); 1966 } 1967 1968 return 0; 1969} 1970 |
|
1959static const cmdinfo_t break_cmd = { 1960 .name = "break", 1961 .argmin = 2, 1962 .argmax = 2, 1963 .cfunc = break_f, 1964 .args = "event tag", 1965 .oneline = "sets a breakpoint on event and tags the stopped " 1966 "request as tag", 1967}; 1968 | 1971static const cmdinfo_t break_cmd = { 1972 .name = "break", 1973 .argmin = 2, 1974 .argmax = 2, 1975 .cfunc = break_f, 1976 .args = "event tag", 1977 .oneline = "sets a breakpoint on event and tags the stopped " 1978 "request as tag", 1979}; 1980 |
1981static const cmdinfo_t remove_break_cmd = { 1982 .name = "remove_break", 1983 .argmin = 1, 1984 .argmax = 1, 1985 .cfunc = remove_break_f, 1986 .args = "tag", 1987 .oneline = "remove a breakpoint by tag", 1988}; 1989 |
|
1969static int resume_f(BlockDriverState *bs, int argc, char **argv) 1970{ 1971 int ret; 1972 1973 ret = bdrv_debug_resume(bs, argv[1]); 1974 if (ret < 0) { 1975 printf("Could not resume request: %s\n", strerror(-ret)); 1976 } --- 144 unchanged lines hidden (view full) --- 2121 qemuio_add_command(&flush_cmd); 2122 qemuio_add_command(&truncate_cmd); 2123 qemuio_add_command(&length_cmd); 2124 qemuio_add_command(&info_cmd); 2125 qemuio_add_command(&discard_cmd); 2126 qemuio_add_command(&alloc_cmd); 2127 qemuio_add_command(&map_cmd); 2128 qemuio_add_command(&break_cmd); | 1990static int resume_f(BlockDriverState *bs, int argc, char **argv) 1991{ 1992 int ret; 1993 1994 ret = bdrv_debug_resume(bs, argv[1]); 1995 if (ret < 0) { 1996 printf("Could not resume request: %s\n", strerror(-ret)); 1997 } --- 144 unchanged lines hidden (view full) --- 2142 qemuio_add_command(&flush_cmd); 2143 qemuio_add_command(&truncate_cmd); 2144 qemuio_add_command(&length_cmd); 2145 qemuio_add_command(&info_cmd); 2146 qemuio_add_command(&discard_cmd); 2147 qemuio_add_command(&alloc_cmd); 2148 qemuio_add_command(&map_cmd); 2149 qemuio_add_command(&break_cmd); |
2150 qemuio_add_command(&remove_break_cmd); |
|
2129 qemuio_add_command(&resume_cmd); 2130 qemuio_add_command(&wait_break_cmd); 2131 qemuio_add_command(&abort_cmd); 2132} | 2151 qemuio_add_command(&resume_cmd); 2152 qemuio_add_command(&wait_break_cmd); 2153 qemuio_add_command(&abort_cmd); 2154} |