#ifndef __TRACE_STAT_H
#define __TRACE_STAT_H

#include <linux/seq_file.h>

/*
 * If you want to provide a stat file (one-shot statistics), fill
 * an iterator with stat_start/stat_next and a stat_show callbacks.
 * The others callbacks are optional.
 */
struct tracer_stat {
	/* The name of your stat file */
	const char		*name;
	/* Iteration over statistic entries */
	void			*(*stat_start)(struct tracer_stat *trace);
	void			*(*stat_next)(void *prev, int idx);
	/* Compare two entries for stats sorting */
	int			(*stat_cmp)(void *p1, void *p2);
	/* Print a stat entry */
	int			(*stat_show)(struct seq_file *s, void *p);
	/* Release an entry */
	void			(*stat_release)(void *stat);
	/* Print the headers of your stat entries */
	int			(*stat_headers)(struct seq_file *s);
};

/*
 * Destroy or create a stat file
 */
extern int register_stat_tracer(struct tracer_stat *trace);
extern void unregister_stat_tracer(struct tracer_stat *trace);

#endif /* __TRACE_STAT_H */
value='emaclite-cleanup'>emaclite-cleanup</option>
<option value='master' selected='selected'>master</option>
<option value='nds-private-remove'>nds-private-remove</option>
<option value='packet-loop-back'>packet-loop-back</option>
<option value='packet-rx-pump-back'>packet-rx-pump-back</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>net-next plumbings</td><td class='sub right'>Tobias Klauser</td></tr></table>
<table class='tabs'><tr><td>
<a href='/cgit.cgi/linux/net-next.git/'>summary</a><a href='/cgit.cgi/linux/net-next.git/refs/?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>refs</a><a class='active' href='/cgit.cgi/linux/net-next.git/log/tools/perf/.gitignore'>log</a><a href='/cgit.cgi/linux/net-next.git/tree/tools/perf/.gitignore?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>tree</a><a href='/cgit.cgi/linux/net-next.git/commit/tools/perf/.gitignore?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/tools/perf/.gitignore?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/tools/perf/.gitignore'>
<input type='hidden' name='id' value='f4874d01beba16a1bf2512929b9d460e003d7f3d'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/log/?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>root</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>tools</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>perf</a>/<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/.gitignore?id=f4874d01beba16a1bf2512929b9d460e003d7f3d'>.gitignore</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th class='left'>Age</th><th class='left'>Commit message (<a href='/cgit.cgi/linux/net-next.git/log/tools/perf/.gitignore?id=f4874d01beba16a1bf2512929b9d460e003d7f3d&amp;showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Files</th><th class='left'>Lines</th></tr>
span='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?id=d9f1f61c0801a73ff36d416a7ede54229b231e1d'>Diffstat</a> (limited to 'drivers/usb/host/ehci-fsl.h')</div><table summary='diffstat' class='diffstat'>