root/tools/perf/pmu-events/jevents.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   1 /* SPDX-License-Identifier: GPL-2.0 */
   2 #ifndef JEVENTS_H
   3 #define JEVENTS_H 1
   4 
   5 int json_events(const char *fn,
   6                 int (*func)(void *data, char *name, char *event, char *desc,
   7                                 char *long_desc,
   8                                 char *pmu,
   9                                 char *unit, char *perpkg, char *metric_expr,
  10                                 char *metric_name, char *metric_group),
  11                 void *data);
  12 char *get_cpu_str(void);
  13 
  14 #ifndef min
  15 #define min(x, y) ({                            \
  16         typeof(x) _min1 = (x);                  \
  17         typeof(y) _min2 = (y);                  \
  18         (void) (&_min1 == &_min2);              \
  19         _min1 < _min2 ? _min1 : _min2; })
  20 #endif
  21 
  22 #endif

/* [<][>][^][v][top][bottom][index][help] */