diff --git a/tools/perf/builtin-diff.c b/tools/perf/builtin-diff.c index 87063835d74121e28a314d2bda855d4fac7724fe..36ccc2b8827fdd239b657e79b396ae013c318462 100644 --- a/tools/perf/builtin-diff.c +++ b/tools/perf/builtin-diff.c @@ -1207,7 +1207,7 @@ static int ui_init(void) BUG_ON(1); } - list_add(&fmt->sort_list, &perf_hpp__sort_list); + perf_hpp__register_sort_field(fmt); return 0; }