Lines Matching refs:tok
2793 static int add_dynamic_entry(struct evlist *evlist, const char *tok, in add_dynamic_entry() argument
2805 str = strdup(tok); in add_dynamic_entry()
2936 int sort_dimension__add(struct perf_hpp_list *list, const char *tok, in sort_dimension__add() argument
2949 if (!strcmp(arch_specific_sort_keys[j], tok) && in sort_dimension__add()
2950 !arch_support_sort_key(tok)) { in sort_dimension__add()
2958 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3003 if (strncasecmp(tok, hd->name, strlen(tok))) in sort_dimension__add()
3012 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3028 if (strncasecmp(tok, sd->name, strlen(tok))) in sort_dimension__add()
3044 if (!add_dynamic_entry(evlist, tok, level)) in sort_dimension__add()
3053 char *tmp, *tok; in setup_sort_list() local
3060 tok = str; in setup_sort_list()
3077 if (*tok) { in setup_sort_list()
3078 ret = sort_dimension__add(list, tok, evlist, level); in setup_sort_list()
3080 if (!cacheline_size() && !strncasecmp(tok, "dcacheline", strlen(tok))) in setup_sort_list()
3083 ui__error("Invalid --sort key: `%s'", tok); in setup_sort_list()
3086 ui__error("Unknown --sort key: `%s'", tok); in setup_sort_list()
3335 int output_field_add(struct perf_hpp_list *list, char *tok) in output_field_add() argument
3342 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add()
3351 if (strncasecmp(tok, hd->name, strlen(tok))) in output_field_add()
3360 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add()
3372 if (strncasecmp(tok, sd->name, strlen(tok))) in output_field_add()
3386 char *tmp, *tok; in setup_output_list() local
3389 for (tok = strtok_r(str, ", ", &tmp); in setup_output_list()
3390 tok; tok = strtok_r(NULL, ", ", &tmp)) { in setup_output_list()
3391 ret = output_field_add(list, tok); in setup_output_list()
3393 ui__error("Invalid --fields key: `%s'", tok); in setup_output_list()
3396 ui__error("Unknown --fields key: `%s'", tok); in setup_output_list()