Share common code between builtin-report, builtin-annotate
cover Share common code between builtin-report, builtin-annotate
builtin-annotate.c started out largely as a copy of builtin-report.c In the meantime, fixes and enhancements have gone into builtin-report but not always into builtin-annotate
The goal here it to share code where possible. The first step is these three patches - more work is comming.
These three patches add util/sort.c and util/sort.h and move that functionality out of builtin-report and builtin-annotate.
Quoted 9 lines · John Kacur
builtin-annotate.cstarted out largely as a copy ofbuiltin-report.cIn the meantime, fixes and enhancements have gone into builtin-report but not always into builtin-annotateThe goal here it to share code where possible. The first step is these three patches - more work is comming.
These three patches add
util/sort.candutil/sort.hand move that functionality out of builtin-report and builtin-annotate.
Very nice patches! I've applied them to tip:perf/core, thanks John.
Ingo