|
@@ -17,6 +17,7 @@
|
|
#include "util/symbol.h"
|
|
#include "util/symbol.h"
|
|
#include "util/util.h"
|
|
#include "util/util.h"
|
|
#include "util/data.h"
|
|
#include "util/data.h"
|
|
|
|
+#include "util/config.h"
|
|
|
|
|
|
#include <stdlib.h>
|
|
#include <stdlib.h>
|
|
#include <math.h>
|
|
#include <math.h>
|
|
@@ -1291,6 +1292,17 @@ static int data_init(int argc, const char **argv)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+static int diff__config(const char *var, const char *value,
|
|
|
|
+ void *cb __maybe_unused)
|
|
|
|
+{
|
|
|
|
+ if (!strcmp(var, "diff.order")) {
|
|
|
|
+ sort_compute = perf_config_int(var, value);
|
|
|
|
+ return 0;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused)
|
|
int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused)
|
|
{
|
|
{
|
|
int ret = hists__init();
|
|
int ret = hists__init();
|
|
@@ -1298,6 +1310,8 @@ int cmd_diff(int argc, const char **argv, const char *prefix __maybe_unused)
|
|
if (ret < 0)
|
|
if (ret < 0)
|
|
return ret;
|
|
return ret;
|
|
|
|
|
|
|
|
+ perf_config(diff__config, NULL);
|
|
|
|
+
|
|
argc = parse_options(argc, argv, options, diff_usage, 0);
|
|
argc = parse_options(argc, argv, options, diff_usage, 0);
|
|
|
|
|
|
if (symbol__init(NULL) < 0)
|
|
if (symbol__init(NULL) < 0)
|