|
@@ -285,7 +285,8 @@ static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
|
|
}
|
|
}
|
|
|
|
|
|
#define __HPP_SORT_FN(_type, _field) \
|
|
#define __HPP_SORT_FN(_type, _field) \
|
|
-static int64_t hpp__sort_##_type(struct hist_entry *a, struct hist_entry *b) \
|
|
|
|
|
|
+static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
|
|
|
|
+ struct hist_entry *a, struct hist_entry *b) \
|
|
{ \
|
|
{ \
|
|
return __hpp__sort(a, b, he_get_##_field); \
|
|
return __hpp__sort(a, b, he_get_##_field); \
|
|
}
|
|
}
|
|
@@ -312,7 +313,8 @@ static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
|
|
}
|
|
}
|
|
|
|
|
|
#define __HPP_SORT_ACC_FN(_type, _field) \
|
|
#define __HPP_SORT_ACC_FN(_type, _field) \
|
|
-static int64_t hpp__sort_##_type(struct hist_entry *a, struct hist_entry *b) \
|
|
|
|
|
|
+static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
|
|
|
|
+ struct hist_entry *a, struct hist_entry *b) \
|
|
{ \
|
|
{ \
|
|
return __hpp__sort_acc(a, b, he_get_acc_##_field); \
|
|
return __hpp__sort_acc(a, b, he_get_acc_##_field); \
|
|
}
|
|
}
|
|
@@ -331,7 +333,8 @@ static int hpp__entry_##_type(struct perf_hpp_fmt *fmt, \
|
|
}
|
|
}
|
|
|
|
|
|
#define __HPP_SORT_RAW_FN(_type, _field) \
|
|
#define __HPP_SORT_RAW_FN(_type, _field) \
|
|
-static int64_t hpp__sort_##_type(struct hist_entry *a, struct hist_entry *b) \
|
|
|
|
|
|
+static int64_t hpp__sort_##_type(struct perf_hpp_fmt *fmt __maybe_unused, \
|
|
|
|
+ struct hist_entry *a, struct hist_entry *b) \
|
|
{ \
|
|
{ \
|
|
return __hpp__sort(a, b, he_get_raw_##_field); \
|
|
return __hpp__sort(a, b, he_get_raw_##_field); \
|
|
}
|
|
}
|
|
@@ -361,7 +364,8 @@ HPP_PERCENT_ACC_FNS(overhead_acc, period)
|
|
HPP_RAW_FNS(samples, nr_events)
|
|
HPP_RAW_FNS(samples, nr_events)
|
|
HPP_RAW_FNS(period, period)
|
|
HPP_RAW_FNS(period, period)
|
|
|
|
|
|
-static int64_t hpp__nop_cmp(struct hist_entry *a __maybe_unused,
|
|
|
|
|
|
+static int64_t hpp__nop_cmp(struct perf_hpp_fmt *fmt __maybe_unused,
|
|
|
|
+ struct hist_entry *a __maybe_unused,
|
|
struct hist_entry *b __maybe_unused)
|
|
struct hist_entry *b __maybe_unused)
|
|
{
|
|
{
|
|
return 0;
|
|
return 0;
|