]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/util/hist.c
perf tools: Add hist.percentage config option
[karo-tx-linux.git] / tools / perf / util / hist.c
index 3c2dd233b98e1019b2039845e34ae90794418bb3..5a892477aa50b345d83c02c2c53faf4dce660248 100644 (file)
@@ -956,3 +956,11 @@ int parse_filter_percentage(const struct option *opt __maybe_unused,
 
        return 0;
 }
+
+int perf_hist_config(const char *var, const char *value)
+{
+       if (!strcmp(var, "hist.percentage"))
+               return parse_filter_percentage(NULL, value, 0);
+
+       return 0;
+}