|
@@ -58,17 +58,19 @@ struct report {
|
|
const char *symbol_filter_str;
|
|
const char *symbol_filter_str;
|
|
float min_percent;
|
|
float min_percent;
|
|
u64 nr_entries;
|
|
u64 nr_entries;
|
|
|
|
+ u64 queue_size;
|
|
DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
|
|
DECLARE_BITMAP(cpu_bitmap, MAX_NR_CPUS);
|
|
};
|
|
};
|
|
|
|
|
|
static int report__config(const char *var, const char *value, void *cb)
|
|
static int report__config(const char *var, const char *value, void *cb)
|
|
{
|
|
{
|
|
|
|
+ struct report *rep = cb;
|
|
|
|
+
|
|
if (!strcmp(var, "report.group")) {
|
|
if (!strcmp(var, "report.group")) {
|
|
symbol_conf.event_group = perf_config_bool(var, value);
|
|
symbol_conf.event_group = perf_config_bool(var, value);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
if (!strcmp(var, "report.percent-limit")) {
|
|
if (!strcmp(var, "report.percent-limit")) {
|
|
- struct report *rep = cb;
|
|
|
|
rep->min_percent = strtof(value, NULL);
|
|
rep->min_percent = strtof(value, NULL);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
@@ -76,6 +78,10 @@ static int report__config(const char *var, const char *value, void *cb)
|
|
symbol_conf.cumulate_callchain = perf_config_bool(var, value);
|
|
symbol_conf.cumulate_callchain = perf_config_bool(var, value);
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
+ if (!strcmp(var, "report.queue-size")) {
|
|
|
|
+ rep->queue_size = perf_config_u64(var, value);
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
|
|
return perf_default_config(var, value, cb);
|
|
return perf_default_config(var, value, cb);
|
|
}
|
|
}
|
|
@@ -714,6 +720,11 @@ repeat:
|
|
if (session == NULL)
|
|
if (session == NULL)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
|
|
+ if (report.queue_size) {
|
|
|
|
+ ordered_events__set_alloc_size(&session->ordered_events,
|
|
|
|
+ report.queue_size);
|
|
|
|
+ }
|
|
|
|
+
|
|
report.session = session;
|
|
report.session = session;
|
|
|
|
|
|
has_br_stack = perf_header__has_feat(&session->header,
|
|
has_br_stack = perf_header__has_feat(&session->header,
|