diff options
Diffstat (limited to 'tools/perf/util/sort.h')
| -rw-r--r-- | tools/perf/util/sort.h | 15 | 
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h index b4e8c3ba559..b13e56f6ccb 100644 --- a/tools/perf/util/sort.h +++ b/tools/perf/util/sort.h @@ -55,9 +55,6 @@ struct he_stat {  struct hist_entry_diff {  	bool	computed; -	/* PERF_HPP__DISPL */ -	int	displacement; -  	/* PERF_HPP__DELTA */  	double	period_ratio_delta; @@ -118,25 +115,29 @@ static inline struct hist_entry *hist_entry__next_pair(struct hist_entry *he)  	return NULL;  } -static inline void hist__entry_add_pair(struct hist_entry *he, +static inline void hist_entry__add_pair(struct hist_entry *he,  					struct hist_entry *pair)  {  	list_add_tail(&he->pairs.head, &pair->pairs.node);  }  enum sort_type { +	/* common sort keys */  	SORT_PID,  	SORT_COMM,  	SORT_DSO,  	SORT_SYM,  	SORT_PARENT,  	SORT_CPU, -	SORT_DSO_FROM, +	SORT_SRCLINE, + +	/* branch stack specific sort keys */ +	__SORT_BRANCH_STACK, +	SORT_DSO_FROM = __SORT_BRANCH_STACK,  	SORT_DSO_TO,  	SORT_SYM_FROM,  	SORT_SYM_TO,  	SORT_MISPREDICT, -	SORT_SRCLINE,  };  /* @@ -159,7 +160,7 @@ struct sort_entry {  extern struct sort_entry sort_thread;  extern struct list_head hist_entry__sort_list; -void setup_sorting(const char * const usagestr[], const struct option *opts); +int setup_sorting(void);  extern int sort_dimension__add(const char *);  void sort_entry__setup_elide(struct sort_entry *self, struct strlist *list,  			     const char *list_name, FILE *fp);  |