]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - tools/perf/ui/stdio/hist.c
perf report: Enable sorting by srcline as key
[karo-tx-linux.git] / tools / perf / ui / stdio / hist.c
index 6128f485a3c502927d991b222913723578360580..d52d5f64ea89119064e3bc57479b6df82fde2a92 100644 (file)
@@ -52,7 +52,8 @@ static size_t inline__fprintf(struct map *map, u64 ip, int left_margin,
                                ret += fprintf(fp, "          ");
                        }
 
-                       if (callchain_param.key == CCKEY_ADDRESS) {
+                       if (callchain_param.key == CCKEY_ADDRESS ||
+                           callchain_param.key == CCKEY_SRCLINE) {
                                if (ilist->filename != NULL)
                                        ret += fprintf(fp, "%s:%d (inline)",
                                                       ilist->filename,