|
@@ -208,7 +208,7 @@ static void compute_stats(struct c2c_hist_entry *c2c_he,
|
|
static int process_sample_event(struct perf_tool *tool __maybe_unused,
|
|
static int process_sample_event(struct perf_tool *tool __maybe_unused,
|
|
union perf_event *event,
|
|
union perf_event *event,
|
|
struct perf_sample *sample,
|
|
struct perf_sample *sample,
|
|
- struct perf_evsel *evsel __maybe_unused,
|
|
|
|
|
|
+ struct perf_evsel *evsel,
|
|
struct machine *machine)
|
|
struct machine *machine)
|
|
{
|
|
{
|
|
struct c2c_hists *c2c_hists = &c2c.hists;
|
|
struct c2c_hists *c2c_hists = &c2c.hists;
|
|
@@ -379,7 +379,7 @@ static int symbol_width(struct hists *hists, struct sort_entry *se)
|
|
|
|
|
|
static int c2c_width(struct perf_hpp_fmt *fmt,
|
|
static int c2c_width(struct perf_hpp_fmt *fmt,
|
|
struct perf_hpp *hpp __maybe_unused,
|
|
struct perf_hpp *hpp __maybe_unused,
|
|
- struct hists *hists __maybe_unused)
|
|
|
|
|
|
+ struct hists *hists)
|
|
{
|
|
{
|
|
struct c2c_fmt *c2c_fmt;
|
|
struct c2c_fmt *c2c_fmt;
|
|
struct c2c_dimension *dim;
|
|
struct c2c_dimension *dim;
|
|
@@ -1127,7 +1127,7 @@ MEAN_ENTRY(mean_lcl_entry, lcl_hitm);
|
|
MEAN_ENTRY(mean_load_entry, load);
|
|
MEAN_ENTRY(mean_load_entry, load);
|
|
|
|
|
|
static int
|
|
static int
|
|
-cpucnt_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp,
|
|
|
|
|
|
+cpucnt_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
|
|
struct hist_entry *he)
|
|
struct hist_entry *he)
|
|
{
|
|
{
|
|
struct c2c_hist_entry *c2c_he;
|
|
struct c2c_hist_entry *c2c_he;
|
|
@@ -1141,7 +1141,7 @@ cpucnt_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp,
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-cl_idx_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp,
|
|
|
|
|
|
+cl_idx_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
|
|
struct hist_entry *he)
|
|
struct hist_entry *he)
|
|
{
|
|
{
|
|
struct c2c_hist_entry *c2c_he;
|
|
struct c2c_hist_entry *c2c_he;
|
|
@@ -1155,7 +1155,7 @@ cl_idx_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp,
|
|
}
|
|
}
|
|
|
|
|
|
static int
|
|
static int
|
|
-cl_idx_empty_entry(struct perf_hpp_fmt *fmt __maybe_unused, struct perf_hpp *hpp,
|
|
|
|
|
|
+cl_idx_empty_entry(struct perf_hpp_fmt *fmt, struct perf_hpp *hpp,
|
|
struct hist_entry *he)
|
|
struct hist_entry *he)
|
|
{
|
|
{
|
|
int width = c2c_width(fmt, hpp, he->hists);
|
|
int width = c2c_width(fmt, hpp, he->hists);
|
|
@@ -1779,7 +1779,6 @@ static int c2c_hists__init(struct c2c_hists *hists,
|
|
return hpp_list__parse(&hists->list, NULL, sort);
|
|
return hpp_list__parse(&hists->list, NULL, sort);
|
|
}
|
|
}
|
|
|
|
|
|
-__maybe_unused
|
|
|
|
static int c2c_hists__reinit(struct c2c_hists *c2c_hists,
|
|
static int c2c_hists__reinit(struct c2c_hists *c2c_hists,
|
|
const char *output,
|
|
const char *output,
|
|
const char *sort)
|
|
const char *sort)
|
|
@@ -2658,7 +2657,7 @@ out:
|
|
return err;
|
|
return err;
|
|
}
|
|
}
|
|
|
|
|
|
-static int parse_record_events(const struct option *opt __maybe_unused,
|
|
|
|
|
|
+static int parse_record_events(const struct option *opt,
|
|
const char *str, int unset __maybe_unused)
|
|
const char *str, int unset __maybe_unused)
|
|
{
|
|
{
|
|
bool *event_set = (bool *) opt->value;
|
|
bool *event_set = (bool *) opt->value;
|