Lines Matching defs:key

54 #define __lockhashfn(key)	hash_long((unsigned long)key, LOCKHASH_BITS)
55 #define lockhashentry(key) (lockhash_table + __lockhashfn((key)))
172 /* build simple key function one is bigger than two */
209 /* key: a pointer to function to compare two lock stats for sorting */
210 int (*key)(struct lock_stat*, struct lock_stat*);
249 static void lock_stat_key_print_ ## member(struct lock_key *key, \
252 fprintf(lock_output, "%*llu", key->len, (unsigned long long)ls->member);\
256 static void lock_stat_key_print_ ## member(struct lock_key *key, \
259 lock_stat_key_print_time((unsigned long long)ls->member, key->len); \
268 static void lock_stat_key_print_wait_time_min(struct lock_key *key,
276 lock_stat_key_print_time(wait_time, key->len);
325 compare = keys[i].key;
327 /* selected key should be in the output fields */
335 pr_err("Unknown compare key: %s\n", sort_key);
627 static int get_key_by_aggr_mode_simple(u64 *key, u64 addr, u32 tid)
631 *key = addr;
634 *key = tid;
646 static int get_key_by_aggr_mode(u64 *key, u64 addr, struct evsel *evsel,
650 *key = callchain_id(evsel, sample);
653 return get_key_by_aggr_mode_simple(key, addr, sample->tid);
665 u64 key;
668 ret = get_key_by_aggr_mode_simple(&key, addr, sample->tid);
672 ls = lock_stat_findnew(key, name, 0);
740 u64 key;
743 ret = get_key_by_aggr_mode_simple(&key, addr, sample->tid);
747 ls = lock_stat_findnew(key, name, 0);
805 u64 key;
808 ret = get_key_by_aggr_mode_simple(&key, addr, sample->tid);
812 ls = lock_stat_findnew(key, name, 0);
863 u64 key;
866 ret = get_key_by_aggr_mode_simple(&key, addr, sample->tid);
870 ls = lock_stat_findnew(key, name, 0);
1064 u64 key;
1071 ret = get_key_by_aggr_mode(&key, addr, evsel, sample);
1105 ls = lock_stat_find(key);
1112 sym = machine__find_kernel_symbol(machine, key, &kmap);
1126 ls = lock_stat_findnew(key, name, flags);
1227 u64 key;
1230 ret = get_key_by_aggr_mode(&key, addr, evsel, sample);
1234 ls = lock_stat_find(key);
1368 struct lock_key *key;
1374 list_for_each_entry(key, &lock_keys, list)
1375 fprintf(lock_output, "%*s ", key->len, key->header);
1412 list_for_each_entry(key, &lock_keys, list) {
1413 key->print(key, st);
1655 struct lock_key *key;
1657 list_for_each_entry(key, &lock_keys, list)
1658 fprintf(lock_output, "%*s ", key->len, key->header);
1678 struct lock_key *key;
1681 list_for_each_entry(key, &lock_keys, list)
1682 fprintf(lock_output, "%s%s ", key->header, sep);
1715 struct lock_key *key;
1719 list_for_each_entry(key, &lock_keys, list) {
1720 key->print(key, st);
1763 struct lock_key *key;
1767 list_for_each_entry(key, &lock_keys, list) {
1768 key->print(key, st);
2493 OPT_STRING('k', "key", &sort_key, "acquired",
2494 "key for sorting (acquired / contended / avg_wait / wait_total / wait_max / wait_min)"),
2507 OPT_STRING('k', "key", &sort_key, "wait_total",
2508 "key for sorting (contended / wait_total / wait_max / wait_min / avg_wait)"),