summaryrefslogtreecommitdiff
path: root/tools/perf/pmu-events/jevents.h
blob: b0eb2744b498876780bd56609ced6fcfd8691675 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef JEVENTS_H
#define JEVENTS_H 1

int json_events(const char *fn,
		int (*func)(void *data, char *name, char *event, char *desc,
				char *long_desc),
		void *data);
char *get_cpu_str(void);

#ifndef min
#define min(x, y) ({                            \
	typeof(x) _min1 = (x);                  \
	typeof(y) _min2 = (y);                  \
	(void) (&_min1 == &_min2);              \
	_min1 < _min2 ? _min1 : _min2; })
#endif

#endif
it/tree/net/irda/irproc.c?id=69973b830859bc6529a7a0468ba0d80ee5117826'>net/irda/irproc.c parent2e4333c14de06a333783d6812cf3c4998f78b0c8 (diff)
Linux 4.9
Diffstat (limited to 'net/irda/irproc.c')