2008-07-17 11:16:48 -04:00
|
|
|
/*
|
|
|
|
* drivers/s390/cio/qdio_perf.h
|
|
|
|
*
|
|
|
|
* Copyright IBM Corp. 2008
|
|
|
|
*
|
|
|
|
* Author: Jan Glauber (jang@linux.vnet.ibm.com)
|
|
|
|
*/
|
|
|
|
#ifndef QDIO_PERF_H
|
|
|
|
#define QDIO_PERF_H
|
|
|
|
|
|
|
|
#include <linux/types.h>
|
|
|
|
#include <asm/atomic.h>
|
|
|
|
|
|
|
|
struct qdio_perf_stats {
|
|
|
|
/* interrupt handler calls */
|
|
|
|
atomic_long_t qdio_int;
|
|
|
|
atomic_long_t pci_int;
|
|
|
|
atomic_long_t thin_int;
|
|
|
|
|
|
|
|
/* tasklet runs */
|
|
|
|
atomic_long_t tasklet_inbound;
|
|
|
|
atomic_long_t tasklet_outbound;
|
|
|
|
atomic_long_t tasklet_thinint;
|
|
|
|
atomic_long_t tasklet_thinint_loop;
|
|
|
|
atomic_long_t thinint_inbound;
|
|
|
|
atomic_long_t thinint_inbound_loop;
|
|
|
|
atomic_long_t thinint_inbound_loop2;
|
|
|
|
|
|
|
|
/* signal adapter calls */
|
|
|
|
atomic_long_t siga_out;
|
|
|
|
atomic_long_t siga_in;
|
|
|
|
atomic_long_t siga_sync;
|
|
|
|
|
|
|
|
/* misc */
|
|
|
|
atomic_long_t inbound_handler;
|
|
|
|
atomic_long_t outbound_handler;
|
|
|
|
atomic_long_t fast_requeue;
|
2008-12-25 07:38:47 -05:00
|
|
|
atomic_long_t outbound_target_full;
|
2008-07-17 11:16:48 -04:00
|
|
|
|
|
|
|
/* for debugging */
|
|
|
|
atomic_long_t debug_tl_out_timer;
|
|
|
|
atomic_long_t debug_stop_polling;
|
2008-12-25 07:38:44 -05:00
|
|
|
atomic_long_t debug_eqbs_all;
|
|
|
|
atomic_long_t debug_eqbs_incomplete;
|
|
|
|
atomic_long_t debug_sqbs_all;
|
|
|
|
atomic_long_t debug_sqbs_incomplete;
|
2008-07-17 11:16:48 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
extern struct qdio_perf_stats perf_stats;
|
|
|
|
extern int qdio_performance_stats;
|
|
|
|
|
2009-06-12 04:26:29 -04:00
|
|
|
static inline void qdio_perf_stat_inc(atomic_long_t *count)
|
|
|
|
{
|
|
|
|
if (qdio_performance_stats)
|
|
|
|
atomic_long_inc(count);
|
|
|
|
}
|
|
|
|
|
2008-07-17 11:16:48 -04:00
|
|
|
int qdio_setup_perf_stats(void);
|
|
|
|
void qdio_remove_perf_stats(void);
|
|
|
|
|
|
|
|
#endif
|