/tools/perf/util/ |
D | block-range.c | 21 struct block_range *entry = rb_entry(rb, struct block_range, node); in block_range__debug() local 23 assert(old < entry->start); in block_range__debug() 24 assert(entry->start <= entry->end); /* single instruction block; jump to a jump */ in block_range__debug() 26 old = entry->end; in block_range__debug() 35 struct block_range *entry; in block_range__find() local 39 entry = rb_entry(parent, struct block_range, node); in block_range__find() 41 if (addr < entry->start) in block_range__find() 43 else if (addr > entry->end) in block_range__find() 46 return entry; in block_range__find() 83 struct block_range *next, *entry = NULL; in block_range__create() local [all …]
|
D | probe-file.c | 354 static void probe_cache_entry__delete(struct probe_cache_entry *entry) in probe_cache_entry__delete() argument 356 if (entry) { in probe_cache_entry__delete() 357 BUG_ON(!list_empty(&entry->node)); in probe_cache_entry__delete() 359 strlist__delete(entry->tevlist); in probe_cache_entry__delete() 360 clear_perf_probe_event(&entry->pev); in probe_cache_entry__delete() 361 zfree(&entry->spev); in probe_cache_entry__delete() 362 free(entry); in probe_cache_entry__delete() 369 struct probe_cache_entry *entry = zalloc(sizeof(*entry)); in probe_cache_entry__new() local 371 if (entry) { in probe_cache_entry__new() 372 INIT_LIST_HEAD(&entry->node); in probe_cache_entry__new() [all …]
|
D | strlist.c | 16 struct rb_node *strlist__node_new(struct rblist *rblist, const void *entry) in strlist__node_new() argument 18 const char *s = entry; in strlist__node_new() 56 static int strlist__node_cmp(struct rb_node *rb_node, const void *entry) in strlist__node_cmp() argument 58 const char *str = entry; in strlist__node_cmp() 71 char entry[1024]; in strlist__load() local 78 while (fgets(entry, sizeof(entry), fp) != NULL) { in strlist__load() 79 const size_t len = strlen(entry); in strlist__load() 83 entry[len - 1] = '\0'; in strlist__load() 85 err = strlist__add(slist, entry); in strlist__load() 101 struct str_node *strlist__find(struct strlist *slist, const char *entry) in strlist__find() argument [all …]
|
D | rblist.c | 52 const void *entry, in __rblist__findnew() argument 63 rc = rblist->node_cmp(parent, entry); in __rblist__findnew() 73 new_node = rblist->node_new(rblist, entry); in __rblist__findnew() 84 struct rb_node *rblist__find(struct rblist *rblist, const void *entry) in rblist__find() argument 86 return __rblist__findnew(rblist, entry, false); in rblist__find() 89 struct rb_node *rblist__findnew(struct rblist *rblist, const void *entry) in rblist__findnew() argument 91 return __rblist__findnew(rblist, entry, true); in rblist__findnew()
|
D | rblist.h | 26 int (*node_cmp)(struct rb_node *rbn, const void *entry); 35 struct rb_node *rblist__find(struct rblist *rblist, const void *entry); 36 struct rb_node *rblist__findnew(struct rblist *rblist, const void *entry);
|
D | strlist.h | 40 struct str_node *strlist__find(struct strlist *slist, const char *entry); 42 static inline bool strlist__has_entry(struct strlist *slist, const char *entry) in strlist__has_entry() argument 44 return strlist__find(slist, entry) != NULL; in strlist__has_entry()
|
D | intlist.c | 15 const void *entry) in intlist__node_new() argument 17 int i = (int)((long)entry); in intlist__node_new() 43 static int intlist__node_cmp(struct rb_node *rb_node, const void *entry) in intlist__node_cmp() argument 45 int i = (int)((long)entry); in intlist__node_cmp()
|
D | probe-file.h | 35 #define for_each_probe_cache_entry(entry, pcache) \ argument 36 list_for_each_entry(entry, &pcache->entries, node) 52 int probe_cache_entry__get_event(struct probe_cache_entry *entry,
|
/tools/objtool/ |
D | special.c | 81 static int get_alt_entry(struct elf *elf, struct special_entry *entry, in get_alt_entry() argument 88 offset = idx * entry->size; in get_alt_entry() 90 alt->group = entry->group; in get_alt_entry() 91 alt->jump_or_nop = entry->jump_or_nop; in get_alt_entry() 95 entry->orig_len); in get_alt_entry() 97 entry->new_len); in get_alt_entry() 100 if (entry->feature) { in get_alt_entry() 104 entry->feature); in get_alt_entry() 115 orig_rela = find_rela_by_dest(sec, offset + entry->orig); in get_alt_entry() 117 WARN_FUNC("can't find orig rela", sec, offset + entry->orig); in get_alt_entry() [all …]
|
/tools/usb/ |
D | testusb.c | 250 struct testdev *entry; in find_testdev() local 268 entry = calloc(1, sizeof *entry); in find_testdev() 269 if (!entry) in find_testdev() 272 entry->name = strdup(name); in find_testdev() 273 if (!entry->name) { in find_testdev() 274 free(entry); in find_testdev() 280 entry->ifnum = ifnum; in find_testdev() 285 speed(entry->speed), entry->name, entry->ifnum); in find_testdev() 287 entry->next = testdevs; in find_testdev() 288 testdevs = entry; in find_testdev() [all …]
|
/tools/testing/selftests/vm/ |
D | compaction_test.c | 163 struct map_list *list, *entry; in main() local 201 entry = malloc(sizeof(struct map_list)); in main() 202 if (!entry) { in main() 206 entry->map = map; in main() 207 entry->next = list; in main() 208 list = entry; in main() 219 for (entry = list; entry != NULL; entry = entry->next) { in main() 220 munmap(entry->map, MAP_SIZE); in main() 221 if (!entry->next) in main() 223 entry = entry->next; in main()
|
/tools/lib/api/fs/ |
D | fs.h | 37 int procfs__read_str(const char *entry, char **buf, size_t *sizep); 40 int sysfs__read_int(const char *entry, int *value); 41 int sysfs__read_ull(const char *entry, unsigned long long *value); 42 int sysfs__read_str(const char *entry, char **buf, size_t *sizep); 43 int sysfs__read_bool(const char *entry, bool *value); 45 int sysfs__write_int(const char *entry, int value);
|
D | fs.c | 409 int procfs__read_str(const char *entry, char **buf, size_t *sizep) in procfs__read_str() argument 417 snprintf(path, sizeof(path), "%s/%s", procfs, entry); in procfs__read_str() 422 int sysfs__read_ull(const char *entry, unsigned long long *value) in sysfs__read_ull() argument 430 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_ull() 435 int sysfs__read_int(const char *entry, int *value) in sysfs__read_int() argument 443 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_int() 448 int sysfs__read_str(const char *entry, char **buf, size_t *sizep) in sysfs__read_str() argument 456 snprintf(path, sizeof(path), "%s/%s", sysfs, entry); in sysfs__read_str() 461 int sysfs__read_bool(const char *entry, bool *value) in sysfs__read_bool() argument 467 ret = sysfs__read_str(entry, &buf, &size); in sysfs__read_bool() [all …]
|
/tools/lib/api/ |
D | cpu.c | 9 char entry[PATH_MAX]; in cpu__get_max_freq() local 15 snprintf(entry, sizeof(entry), in cpu__get_max_freq() 18 return sysfs__read_ull(entry, freq); in cpu__get_max_freq()
|
/tools/usb/usbip/libsrc/ |
D | list.h | 86 static inline void __list_del_entry(struct list_head *entry) in __list_del_entry() argument 88 __list_del(entry->prev, entry->next); in __list_del_entry() 91 static inline void list_del(struct list_head *entry) in list_del() argument 93 __list_del(entry->prev, entry->next); in list_del() 94 entry->next = LIST_POISON1; in list_del() 95 entry->prev = LIST_POISON2; in list_del()
|
/tools/testing/selftests/rcutorture/formal/srcu-cbmc/src/ |
D | workqueues.h | 23 struct list_head entry; member 31 struct hlist_node entry; member 86 .entry = { &(n).entry, &(n).entry }, \
|
/tools/perf/scripts/python/ |
D | stackcollapse.py | 97 for entry in param_dict['callchain']: 98 entry.setdefault('sym', dict()) 99 entry['sym'].setdefault('name', None) 100 entry.setdefault('dso', None) 101 stack.append(tidy_function_name(entry['sym']['name'], 102 entry['dso']))
|
/tools/testing/selftests/powerpc/primitives/ |
D | load_unaligned_zeropad.c | 86 struct extbl_entry *entry = (struct extbl_entry *)__start___ex_table; in segv_handler() local 88 while (entry < (struct extbl_entry *)__stop___ex_table) { in segv_handler() 91 insn = (unsigned long)&entry->insn + entry->insn; in segv_handler() 92 fixup = (unsigned long)&entry->fixup + entry->fixup; in segv_handler()
|
/tools/perf/arch/x86/entry/syscalls/ |
D | syscalltbl.sh | 16 entry="$2" 18 syscall_macro "$nr" "$entry" 27 while read nr abi name entry compat; do
|
/tools/include/linux/ |
D | list.h | 100 static inline void __list_del_entry(struct list_head *entry) in __list_del_entry() argument 102 __list_del(entry->prev, entry->next); in __list_del_entry() 105 static inline void list_del(struct list_head *entry) in list_del() argument 107 __list_del(entry->prev, entry->next); in list_del() 108 entry->next = LIST_POISON1; in list_del() 109 entry->prev = LIST_POISON2; in list_del() 112 extern void __list_del_entry(struct list_head *entry); 113 extern void list_del(struct list_head *entry); 143 static inline void list_del_init(struct list_head *entry) in list_del_init() argument 145 __list_del_entry(entry); in list_del_init() [all …]
|
/tools/testing/radix-tree/ |
D | iteration_check.c | 75 void *entry = radix_tree_deref_slot(slot); in tagged_iteration_fn() local 76 if (unlikely(!entry)) in tagged_iteration_fn() 79 if (radix_tree_deref_retry(entry)) { in tagged_iteration_fn() 116 void *entry = radix_tree_deref_slot(slot); in untagged_iteration_fn() local 117 if (unlikely(!entry)) in untagged_iteration_fn() 120 if (radix_tree_deref_retry(entry)) { in untagged_iteration_fn()
|
/tools/perf/arch/x86/ |
D | Makefile | 15 sys := $(srctree)/tools/perf/arch/x86/entry/syscalls 23 …(diff -B arch/x86/entry/syscalls/syscall_64.tbl ../../arch/x86/entry/syscalls/syscall_64.tbl >/dev…
|
/tools/perf/ |
D | builtin-annotate.c | 83 struct block_range *entry; in process_basic_block() local 98 entry = block_range_iter(&iter); in process_basic_block() 99 assert(entry->is_target); in process_basic_block() 100 entry->entry++; in process_basic_block() 103 entry = block_range_iter(&iter); in process_basic_block() 105 entry->coverage++; in process_basic_block() 106 entry->sym = sym; in process_basic_block() 109 notes->max_coverage = max(notes->max_coverage, entry->coverage); in process_basic_block() 116 entry = block_range_iter(&iter); in process_basic_block() 117 assert(entry->is_branch); in process_basic_block() [all …]
|
/tools/perf/tests/ |
D | dwarf-unwind.c | 55 static int unwind_entry(struct unwind_entry *entry, void *arg) in unwind_entry() argument 58 char *symbol = entry->sym ? entry->sym->name : NULL; in unwind_entry() 83 entry->ip); in unwind_entry() 89 symbol, entry->ip, funcs[idx]); in unwind_entry()
|
/tools/testing/selftests/powerpc/pmu/ebb/ |
D | ebb.c | 133 u64 entry; in setup_ebb_handler() local 136 entry = (u64)ebb_handler; in setup_ebb_handler() 140 u64 entry; in setup_ebb_handler() member 145 entry = opd->entry; in setup_ebb_handler() 147 printf("EBB Handler is at %#llx\n", entry); in setup_ebb_handler() 153 mtspr(SPRN_EBBHR, entry); in setup_ebb_handler()
|