Searched refs:fda (Results 1 – 9 of 9) sorted by relevance
/linux-6.3-rc2/tools/lib/api/fd/ |
A D | array.c | 17 fda->nr = fda->nr_alloc = 0; in fdarray__init() 49 struct fdarray *fda = calloc(1, sizeof(*fda)); in fdarray__new() local 60 return fda; in fdarray__new() 73 free(fda); in fdarray__delete() 80 if (fda->nr == fda->nr_alloc && in fdarray__add() 81 fdarray__grow(fda, fda->nr_autogrow) < 0) in fdarray__add() 84 fda->entries[fda->nr].fd = fd; in fdarray__add() 85 fda->entries[fda->nr].events = revents; in fdarray__add() 86 fda->priv[fda->nr].flags = flags; in fdarray__add() 87 fda->nr++; in fdarray__add() [all …]
|
A D | array.h | 39 void fdarray__init(struct fdarray *fda, int nr_autogrow); 40 void fdarray__exit(struct fdarray *fda); 43 void fdarray__delete(struct fdarray *fda); 46 int fdarray__dup_entry_from(struct fdarray *fda, int pos, struct fdarray *from); 47 int fdarray__poll(struct fdarray *fda, int timeout); 48 int fdarray__filter(struct fdarray *fda, short revents, 49 void (*entry_destructor)(struct fdarray *fda, int fd, void *arg), 51 int fdarray__grow(struct fdarray *fda, int extra); 52 int fdarray__fprintf(struct fdarray *fda, FILE *fp); 54 static inline int fdarray__available_entries(struct fdarray *fda) in fdarray__available_entries() argument [all …]
|
/linux-6.3-rc2/tools/perf/tests/ |
A D | fdarray.c | 11 fda->nr = fda->nr_alloc; in fdarray__init_revents() 13 for (fd = 0; fd < fda->nr; ++fd) { in fdarray__init_revents() 14 fda->entries[fd].fd = fda->nr - fd; in fdarray__init_revents() 36 if (fda == NULL) { in test__fdarray__filter() 43 if (nr_fds != fda->nr_alloc) { in test__fdarray__filter() 45 nr_fds, fda->nr_alloc); in test__fdarray__filter() 53 nr_fds, fda->nr_alloc); in test__fdarray__filter() 87 fdarray__delete(fda); in test__fdarray__filter() 97 if (fda == NULL) { in test__fdarray__add() 134 if (fda->entries == NULL) { in test__fdarray__add() [all …]
|
/linux-6.3-rc2/tools/perf/ |
A D | builtin-daemon.c | 1257 struct fdarray fda; in __cmd_start() local 1293 fdarray__init(&fda, 3); in __cmd_start() 1307 sock_pos = fdarray__add(&fda, sock_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1311 file_pos = fdarray__add(&fda, conf_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1315 signal_pos = fdarray__add(&fda, signal_fd, POLLIN|POLLERR|POLLHUP, 0); in __cmd_start() 1326 if (!err && fdarray__poll(&fda, -1)) { in __cmd_start() 1329 if (fda.entries[sock_pos].revents & POLLIN) in __cmd_start() 1331 if (fda.entries[file_pos].revents & POLLIN) in __cmd_start() 1333 if (fda.entries[signal_pos].revents & POLLIN) in __cmd_start() 1342 fdarray__exit(&fda); in __cmd_start()
|
A D | builtin-record.c | 1131 struct fdarray *fda = &evlist->core.pollfd; in record__dup_non_perf_events() local 1134 for (i = 0; i < fda->nr; i++) { in record__dup_non_perf_events() 1135 if (!(fda->priv[i].flags & fdarray_flag__non_perf_event)) in record__dup_non_perf_events() 1137 ret = fdarray__dup_entry_from(&thread_data->pollfd, i, fda); in record__dup_non_perf_events() 1143 thread_data, ret, fda->entries[i].fd); in record__dup_non_perf_events() 1618 static void record__thread_munmap_filtered(struct fdarray *fda, int fd, in record__thread_munmap_filtered() argument 1621 struct perf_mmap *map = fda->priv[fd].ptr; in record__thread_munmap_filtered()
|
A D | builtin-kvm.c | 986 struct fdarray *fda = &kvm->evlist->core.pollfd; in kvm_events_live_report() local 997 if (fda->entries[nr_stdin].revents & POLLIN) in kvm_events_live_report()
|
/linux-6.3-rc2/drivers/android/ |
A D | binder.c | 2031 struct binder_fd_array_object *fda; in binder_transaction_buffer_release() local 2051 fda->parent, in binder_transaction_buffer_release() 2082 fda->parent_offset; in binder_transaction_buffer_release() 2562 if (fda->num_fds == 0) in binder_translate_fd_array() 2586 fda->parent_offset; in binder_translate_fd_array() 2588 fda->parent_offset; in binder_translate_fd_array() 3416 struct binder_fd_array_object *fda = in binder_transaction() local 3422 &ptr_object, fda->parent, in binder_transaction() 3437 fda->parent_offset, in binder_transaction() 3472 fda, sizeof(*fda)); in binder_transaction() [all …]
|
/linux-6.3-rc2/tools/testing/selftests/net/ |
A D | msg_zerocopy.c | 159 int fda = fd; in do_accept() local 161 fd = accept(fda, NULL, NULL); in do_accept() 164 if (close(fda)) in do_accept()
|
/linux-6.3-rc2/tools/lib/perf/ |
A D | evlist.c | 338 static void perf_evlist__munmap_filtered(struct fdarray *fda, int fd, in perf_evlist__munmap_filtered() argument 341 struct perf_mmap *map = fda->priv[fd].ptr; in perf_evlist__munmap_filtered()
|
Completed in 45 milliseconds