/openbmc/qemu/replay/ |
H A D | replay-debugging.c | 54 retval->icount = replay_get_current_icount(); in qmp_query_replay() 58 static void replay_break(uint64_t icount, QEMUTimerCB callback, void *opaque) in replay_break() argument 65 replay_break_icount = icount; in replay_break() 92 void qmp_replay_break(int64_t icount, Error **errp) in qmp_replay_break() argument 95 if (icount >= replay_get_current_icount()) { in qmp_replay_break() 96 replay_break(icount, replay_stop_vm, NULL); in qmp_replay_break() 108 int64_t icount = qdict_get_try_int(qdict, "icount", -1LL); in hmp_replay_break() local 111 qmp_replay_break(icount, &err); in hmp_replay_break() 138 static char *replay_find_nearest_snapshot(int64_t icount, in replay_find_nearest_snapshot() argument 162 if (sn_tab[i].icount != -1ULL in replay_find_nearest_snapshot() [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() 367 trace_xchk_fscounters_calc(mp, fsc->icount, fsc->ifree, fsc->fdblocks, 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() [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 | 73 struct async_icount icount; member 182 struct async_icount *icount; in receive_chars() local 185 icount = &info->icount; in receive_chars() 199 icount->rx++; in receive_chars() 219 icount->brk++; in receive_chars() 221 icount->parity++; in receive_chars() 223 icount->frame++; in receive_chars() 225 icount->overrun++; in receive_chars() 272 info->icount.tx++; in transmit_chars() 288 info->icount.tx++; in transmit_chars() [all …]
|
H A D | mxser.c | 272 struct async_icount icount; /* kernel counters for 4 input interrupts */ member 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() 1154 cnow = info->icount; /* atomic copy */ in mxser_cflags_changed() 1228 cnow = info->icount; /* note the counters on entry */ in mxser_ioctl() 1247 struct serial_icounter_struct *icount) in mxser_get_icount() argument 1255 cnow = info->icount; in mxser_get_icount() 1258 icount->frame = cnow.frame; in mxser_get_icount() [all …]
|
H A D | synclink_gt.c | 228 struct mgsl_icount icount; member 1032 struct serial_icounter_struct *icount) in get_icount() argument 1040 cnow = info->icount; in get_icount() 1043 icount->cts = cnow.cts; in get_icount() 1044 icount->dsr = cnow.dsr; in get_icount() 1045 icount->rng = cnow.rng; in get_icount() 1046 icount->dcd = cnow.dcd; in get_icount() 1047 icount->rx = cnow.rx; in get_icount() 1048 icount->tx = cnow.tx; in get_icount() 1049 icount->frame = cnow.frame; in get_icount() [all …]
|
/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() 377 port->icount.parity++; in sdio_uart_receive_chars() 379 port->icount.frame++; in sdio_uart_receive_chars() 381 port->icount.overrun++; 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() [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/qemu/accel/tcg/ |
H A D | icount-common.c | 123 int64_t icount = icount_get_raw_locked(); in icount_get_locked() local 125 icount_to_ns(icount); in icount_get_locked() 130 int64_t icount; in icount_get_raw() local 135 icount = icount_get_raw_locked(); in icount_get_raw() 138 return icount; in icount_get_raw() 144 int64_t icount; in icount_get() local 149 icount = icount_get_locked(); in icount_get() 152 return icount; in icount_get() 155 int64_t icount_to_ns(int64_t icount) in icount_to_ns() argument 157 return icount << qatomic_read(&timers_state.icount_time_shift); in icount_to_ns()
|
/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/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/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/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 | 514 cnow = port->icount; /* atomic copy*/ in usb_serial_generic_msr_changed() 535 cnow = port->icount; /* atomic copy */ in usb_serial_generic_tiocmiwait() 548 struct serial_icounter_struct *icount) in usb_serial_generic_get_icount() argument 555 cnow = port->icount; /* atomic copy */ in usb_serial_generic_get_icount() 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() [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/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/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()
|
H A D | sb1250-duart.c | 333 struct uart_icount *icount; in sbd_receive_chars() local 347 icount = &uport->icount; in sbd_receive_chars() 348 icount->rx++; in sbd_receive_chars() 354 icount->brk++; in sbd_receive_chars() 358 icount->frame++; in sbd_receive_chars() 360 icount->parity++; in sbd_receive_chars() 362 icount->overrun++; in sbd_receive_chars() 392 sport->port.icount.tx++; in sbd_transmit_chars() 430 uport->icount.dsr++; in sbd_status_handle()
|
/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/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()
|