⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ilatency.h

📁 linux得一些常用命令,以及linux环境下的c编程
💻 H
字号:
/* *  linux/kernel/ilatency.h * *  Interrupt latency instrumentation * *  Copyright (C) 2001 MontaVista Software Inc. * *  2000-03-15  Jun Sun's original interrupt latency patch *  2001-8-29   Made to work on multiple arch's by Dave Singleton */#ifndef _H_LINUX_ILATENCY_H#define _H_LINUX_ILATENCY_Hextern void inthoff_logentry(unsigned);extern void intr_ret_from_exception(void);extern void interrupt_overhead_start(void);extern void interrupt_overhead_stop(void);extern void intr_sti(const char *, unsigned, int);extern void intr_restore_flags(const char *, unsigned, unsigned);extern void intr_cli(const char *, unsigned);extern unsigned int clock_diff(unsigned, unsigned);extern unsigned ticks_per_usec;#define	NUM_LOG_ENTRIES 15#define ON 		1#define OFF 		0#define	BUCKETS		250 #define BUCKET_SIZE	2#define UPPER_LIMIT	BUCKETS * BUCKET_SIZE#define LAST_BUCKET	BUCKETS - 1typedef struct interrupt_latency_log {	/* count interrupt and iret */	int iret_count;	/* the test name */	const char * testName;	/* flag to control logging */	unsigned logging;   /* 0 - no logging; 1 - logging */	/* panic flag - set to 1 if something is realy wrong */	unsigned really_wrong;	/* for synchro between start and end */	unsigned sync;	/* we only log interrupts within certain range */	unsigned low_water;	unsigned high_water;	/* count the total number interrupts  and intrs in range*/	unsigned total_ints;	unsigned total_ints_in_range;	/* error accounting */	unsigned skip_sti;	unsigned skip_cli;	unsigned sti_error;	unsigned cli_error;	unsigned sti_break_error;	unsigned restore_sti;	unsigned restore_cli;	struct {		/* worst blocking time */		int interrupts_off;		const char * cli_file;		unsigned cli_line;		unsigned cli_ticks;				const char *sti_file;		unsigned sti_line;		unsigned sti_ticks;		int multiples;	} log[NUM_LOG_ENTRIES];} interrupt_latency_log_t;#endif /* _H_LINUX_ILATENCY_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -