/openbmc/qemu/replay/ |
H A D | replay-debugging.c | 54 retval->icount = replay_get_current_icount(); in qmp_query_replay() 65 replay_break_icount = icount; in replay_break() 111 qmp_replay_break(icount, &err); in hmp_replay_break() 162 if (sn_tab[i].icount != -1ULL in replay_find_nearest_snapshot() 163 && sn_tab[i].icount <= icount in replay_find_nearest_snapshot() 164 && (!nearest || nearest->icount < sn_tab[i].icount)) { in replay_find_nearest_snapshot() 171 *snapshot_icount = nearest->icount; in replay_find_nearest_snapshot() 191 if (icount < replay_get_current_icount() in replay_seek() 199 replay_break(icount, callback, NULL); in replay_seek() 208 replay_seek(icount, replay_stop_vm, errp); in qmp_replay_seek() [all …]
|
H A D | stubs-system.c | 82 void qmp_replay_break(int64_t icount, Error **errp) in qmp_replay_break() argument 92 void qmp_replay_seek(int64_t icount, Error **errp) in qmp_replay_seek() argument
|
/openbmc/linux/fs/xfs/scrub/ |
H A D | fscounters.c | 53 uint64_t icount; member 308 fsc->icount = 0; in xchk_fscount_aggregate_agcounts() 324 fsc->icount += pag->pagi_count; in xchk_fscount_aggregate_agcounts() 372 if (fsc->icount < fsc->icount_min || fsc->icount > fsc->icount_max || in xchk_fscount_aggregate_agcounts() 382 if (fsc->ifree > fsc->icount) { in xchk_fscount_aggregate_agcounts() 503 int64_t icount, ifree, fdblocks, frextents; in xchk_fscounters() local 508 icount = percpu_counter_sum(&mp->m_icount); in xchk_fscounters() 514 if (icount < 0 || ifree < 0) in xchk_fscounters() 535 if (icount < fsc->icount_min || icount > fsc->icount_max) in xchk_fscounters() 550 if (ifree > icount && ifree - icount > XCHK_FSCOUNT_MIN_VARIANCE) in xchk_fscounters() [all …]
|
H A D | repair.c | 258 xfs_agino_t icount = NULLAGINO; in xrep_calc_ag_resblks() local 274 icount = pag->pagi_count; in xrep_calc_ag_resblks() 279 icount = pag->pagi_count; in xrep_calc_ag_resblks() 300 if (icount == NULLAGINO || in xrep_calc_ag_resblks() 301 !xfs_verify_agino(pag, icount)) { in xrep_calc_ag_resblks() 302 icount = pag->agino_max - pag->agino_min + 1; in xrep_calc_ag_resblks() 315 trace_xrep_calc_ag_resblks(mp, sm->sm_agno, icount, aglen, in xrep_calc_ag_resblks() 325 inobt_sz = xfs_iallocbt_calc_size(mp, icount / in xrep_calc_ag_resblks() 328 inobt_sz = xfs_iallocbt_calc_size(mp, icount / in xrep_calc_ag_resblks()
|
/openbmc/linux/drivers/tty/ |
H A D | amiserial.c | 185 icount = &info->icount; in receive_chars() 199 icount->rx++; in receive_chars() 219 icount->brk++; in receive_chars() 223 icount->frame++; in receive_chars() 272 info->icount.tx++; in transmit_chars() 288 info->icount.tx++; in transmit_chars() 317 icount = &info->icount; in check_modem_status() 320 icount->dsr++; in check_modem_status() 322 icount->dcd++; in check_modem_status() 325 icount->cts++; in check_modem_status() [all …]
|
H A D | mxser.c | 696 port->icount.rng++; in mxser_check_modem_status() 698 port->icount.dsr++; in mxser_check_modem_status() 700 port->icount.dcd++; in mxser_check_modem_status() 702 port->icount.cts++; in mxser_check_modem_status() 1255 cnow = info->icount; in mxser_get_icount() 1259 icount->brk = cnow.brk; in mxser_get_icount() 1263 icount->rx = cnow.rx; in mxser_get_icount() 1264 icount->tx = cnow.tx; in mxser_get_icount() 1265 icount->cts = cnow.cts; in mxser_get_icount() 1576 port->icount.tx++; in mxser_transmit_chars() [all …]
|
H A D | synclink_gt.c | 1040 cnow = info->icount; in get_icount() 1196 info->icount.txok, info->icount.rxok); in line_info() 1211 info->icount.tx, info->icount.rx); in line_info() 1756 struct mgsl_icount *icount = &info->icount; in rx_async() local 1777 icount->rx++; in rx_async() 1925 info->icount.dsr++; in dsr_change() 1945 info->icount.cts++; in cts_change() 1980 info->icount.dcd++; in dcd_change() 2017 info->icount.rng++; in ri_change() 2347 memset(&info->icount, 0, sizeof(info->icount)); in startup() [all …]
|
/openbmc/linux/arch/powerpc/sysdev/xics/ |
H A D | ics-native.c | 36 u32 icount; member 54 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_unmask_irq() 91 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_mask_irq() 106 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_set_affinity() 140 if (hw_irq < in->ibase || hw_irq >= (in->ibase + in->icount)) in ics_native_check() 150 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_mask_unknown() 161 if (vec < in->ibase || vec >= (in->ibase + in->icount)) in ics_native_get_server() 219 ics->icount = ranges[1]; in ics_native_add_one() 222 ics->ibase, ics->ibase + ics->icount - 1); in ics_native_add_one()
|
/openbmc/linux/drivers/mmc/core/ |
H A D | sdio_uart.c | 73 struct uart_icount icount; member 366 port->icount.rx++; in sdio_uart_receive_chars() 375 port->icount.brk++; in sdio_uart_receive_chars() 379 port->icount.frame++; in sdio_uart_receive_chars() 421 port->icount.tx++; in sdio_uart_transmit_chars() 438 port->icount.tx++; in sdio_uart_transmit_chars() 461 port->icount.rng++; in sdio_uart_check_modem_status() 463 port->icount.dsr++; in sdio_uart_check_modem_status() 465 port->icount.dcd++; in sdio_uart_check_modem_status() 475 port->icount.cts++; in sdio_uart_check_modem_status() [all …]
|
/openbmc/qemu/qapi/ |
H A D | replay.json | 39 # @icount: current number of executed instructions. 44 'data': { 'mode': 'ReplayMode', '*filename': 'str', 'icount': 'int' } } 68 # Set replay breakpoint at instruction count @icount. Execution stops 75 # @icount: instruction count to stop at 84 { 'command': 'replay-break', 'data': { 'icount': 'int' } } 104 # Automatically proceed to the instruction count @icount, when 111 # @icount: target instruction count 120 { 'command': 'replay-seek', 'data': { 'icount': 'int' } }
|
/openbmc/qemu/accel/tcg/ |
H A D | icount-common.c | 124 int64_t icount = icount_get_raw_locked(); in icount_get_locked() local 126 icount_to_ns(icount); in icount_get_locked() 131 int64_t icount; in icount_get_raw() local 136 icount = icount_get_raw_locked(); in icount_get_raw() 139 return icount; in icount_get_raw() 145 int64_t icount; in icount_get() local 150 icount = icount_get_locked(); in icount_get() 153 return icount; in icount_get() 156 int64_t icount_to_ns(int64_t icount) in icount_to_ns() argument 158 return icount << qatomic_read(&timers_state.icount_time_shift); in icount_to_ns()
|
H A D | meson.build | 27 'icount-common.c', 34 'tcg-accel-ops-icount.c',
|
/openbmc/qemu/contrib/plugins/ |
H A D | howvec.c | 283 InsnExecCount *icount; in find_counter() local 286 icount = (InsnExecCount *) g_hash_table_lookup(insns, in find_counter() 289 if (!icount) { in find_counter() 290 icount = g_new0(InsnExecCount, 1); in find_counter() 291 icount->opcode = opcode; in find_counter() 292 icount->insn = qemu_plugin_insn_disas(insn); in find_counter() 293 icount->class = class; in find_counter() 296 icount->count = qemu_plugin_scoreboard_u64(score); in find_counter() 299 (gpointer) icount); in find_counter() 303 return icount->count.score; in find_counter()
|
H A D | stoptrigger.c | 28 static uint64_t icount; variable 78 QEMU_PLUGIN_COND_EQ, insn_count, icount + 1, insn_vaddr); in vcpu_tb_trans() 113 icount = g_ascii_strtoull(icount_tokens[0], NULL, 0); in qemu_plugin_install() 114 if (icount < 1 || g_strrstr(icount_tokens[0], "-") != NULL) { in qemu_plugin_install()
|
/openbmc/qemu/tcg/ |
H A D | perf.c | 247 size_t icount) in write_jr_code_debug_info() argument 260 for (insn = 0; insn < icount; insn++) { in write_jr_code_debug_info() 269 for (insn = 0; insn < icount; insn++) { in write_jr_code_debug_info() 281 ent.addr = (uintptr_t)start + tcg_ctx->gen_insn_end_off[icount - 1]; in write_jr_code_debug_info() 323 q = g_try_malloc0_n(tb->icount, sizeof(*q)); in perf_report_code() 334 for (insn = 0; insn < tb->icount; insn++) { in perf_report_code() 342 debuginfo_query(q, tb->icount); in perf_report_code() 347 for (insn = 0; insn < tb->icount; insn++) { in perf_report_code() 356 write_jr_code_debug_info(start, q, tb->icount); in perf_report_code() 357 write_jr_code_load(start, tcg_ctx->gen_insn_end_off[tb->icount - 1], in perf_report_code()
|
/openbmc/linux/drivers/leds/trigger/ |
H A D | ledtrig-tty.c | 85 struct serial_icounter_struct icount; in ledtrig_tty_work() local 118 ret = tty_get_icount(trigger_data->tty, &icount); in ledtrig_tty_work() 125 if (icount.rx != trigger_data->rx || in ledtrig_tty_work() 126 icount.tx != trigger_data->tx) { in ledtrig_tty_work() 132 trigger_data->rx = icount.rx; in ledtrig_tty_work() 133 trigger_data->tx = icount.tx; in ledtrig_tty_work()
|
/openbmc/linux/drivers/usb/serial/ |
H A D | generic.c | 558 icount->cts = cnow.cts; in usb_serial_generic_get_icount() 559 icount->dsr = cnow.dsr; in usb_serial_generic_get_icount() 560 icount->rng = cnow.rng; in usb_serial_generic_get_icount() 561 icount->dcd = cnow.dcd; in usb_serial_generic_get_icount() 562 icount->tx = cnow.tx; in usb_serial_generic_get_icount() 563 icount->rx = cnow.rx; in usb_serial_generic_get_icount() 564 icount->frame = cnow.frame; in usb_serial_generic_get_icount() 565 icount->parity = cnow.parity; in usb_serial_generic_get_icount() 566 icount->overrun = cnow.overrun; in usb_serial_generic_get_icount() 567 icount->brk = cnow.brk; in usb_serial_generic_get_icount() [all …]
|
H A D | ssu100.c | 416 port->icount.cts++; in ssu100_update_msr() 418 port->icount.dsr++; in ssu100_update_msr() 420 port->icount.dcd++; in ssu100_update_msr() 422 port->icount.rng++; in ssu100_update_msr() 442 port->icount.brk++; in ssu100_update_lsr() 447 port->icount.parity++; in ssu100_update_lsr() 452 port->icount.frame++; in ssu100_update_lsr() 457 port->icount.overrun++; in ssu100_update_lsr()
|
H A D | ark3116.c | 469 port->icount.cts++; in ark3116_update_msr() 471 port->icount.dsr++; in ark3116_update_msr() 473 port->icount.dcd++; in ark3116_update_msr() 475 port->icount.rng++; in ark3116_update_msr() 492 port->icount.brk++; in ark3116_update_lsr() 494 port->icount.frame++; in ark3116_update_lsr() 496 port->icount.parity++; in ark3116_update_lsr() 498 port->icount.overrun++; in ark3116_update_lsr()
|
H A D | quatech2.c | 805 port->icount.cts++; in qt2_update_msr() 807 port->icount.dsr++; in qt2_update_msr() 809 port->icount.dcd++; in qt2_update_msr() 811 port->icount.rng++; in qt2_update_msr() 820 struct async_icount *icount; in qt2_update_lsr() local 836 icount = &port->icount; in qt2_update_lsr() 841 icount->brk++; in qt2_update_lsr() 844 icount->overrun++; in qt2_update_lsr() 847 icount->parity++; in qt2_update_lsr() 850 icount->frame++; in qt2_update_lsr()
|
/openbmc/qemu/docs/devel/ |
H A D | tcg-icount.rst | 10 TCG has long supported a feature known as icount which allows for 27 At its heart icount is simply a count of executed instructions which 31 execution started. Depending on the icount mode this may either be a 44 In the case of icount, before the flag is checked we subtract the 57 up to date and accurate reading of the icount number. 61 - restore un-executed instructions to the icount budget 78 * it must call gen_io_start() if icount is enabled, at some
|
/openbmc/linux/fs/xfs/ |
H A D | xfs_itable.h | 14 unsigned int icount; /* number of elements in ubuffer */ member 38 return breq->ocount == breq->icount ? -ECANCELED : 0; in xfs_ibulk_advance()
|
/openbmc/linux/drivers/tty/serial/ |
H A D | dz.c | 182 struct uart_icount *icount; in dz_receive_chars() local 195 icount = &uport->icount; in dz_receive_chars() 196 icount->rx++; in dz_receive_chars() 214 icount->brk++; in dz_receive_chars() 218 icount->frame++; in dz_receive_chars() 220 icount->parity++; in dz_receive_chars() 222 icount->overrun++; in dz_receive_chars() 265 dport->port.icount.tx++; in dz_transmit_chars() 321 dport->port.icount.dsr++; in check_modem_status()
|
/openbmc/linux/drivers/ipack/devices/ |
H A D | ipoctal.c | 142 struct serial_icounter_struct *icount) in ipoctal_get_icount() argument 146 icount->cts = 0; in ipoctal_get_icount() 147 icount->dsr = 0; in ipoctal_get_icount() 148 icount->rng = 0; in ipoctal_get_icount() 149 icount->dcd = 0; in ipoctal_get_icount() 150 icount->rx = channel->stats.rx; in ipoctal_get_icount() 151 icount->tx = channel->stats.tx; in ipoctal_get_icount() 152 icount->frame = channel->stats.framing_err; in ipoctal_get_icount() 153 icount->parity = channel->stats.parity_err; in ipoctal_get_icount() 154 icount->brk = channel->stats.rcv_break; in ipoctal_get_icount()
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_types.c | 188 unsigned long long icount) in xfs_verify_icount() argument 193 return icount >= min && icount <= max; in xfs_verify_icount()
|