• Home
  • Raw
  • Download

Lines Matching refs:auxtrace_index

799 	struct auxtrace_index *auxtrace_index;  in auxtrace_index__alloc()  local
801 auxtrace_index = malloc(sizeof(struct auxtrace_index)); in auxtrace_index__alloc()
802 if (!auxtrace_index) in auxtrace_index__alloc()
805 auxtrace_index->nr = 0; in auxtrace_index__alloc()
806 INIT_LIST_HEAD(&auxtrace_index->list); in auxtrace_index__alloc()
808 list_add_tail(&auxtrace_index->list, head); in auxtrace_index__alloc()
815 struct auxtrace_index *auxtrace_index, *n; in auxtrace_index__free() local
817 list_for_each_entry_safe(auxtrace_index, n, head, list) { in auxtrace_index__free()
818 list_del_init(&auxtrace_index->list); in auxtrace_index__free()
819 free(auxtrace_index); in auxtrace_index__free()
823 static struct auxtrace_index *auxtrace_index__last(struct list_head *head) in auxtrace_index__last()
825 struct auxtrace_index *auxtrace_index; in auxtrace_index__last() local
834 auxtrace_index = list_entry(head->prev, struct auxtrace_index, list); in auxtrace_index__last()
836 if (auxtrace_index->nr >= PERF_AUXTRACE_INDEX_ENTRY_COUNT) { in auxtrace_index__last()
840 auxtrace_index = list_entry(head->prev, struct auxtrace_index, in auxtrace_index__last()
844 return auxtrace_index; in auxtrace_index__last()
850 struct auxtrace_index *auxtrace_index; in auxtrace_index__auxtrace_event() local
853 auxtrace_index = auxtrace_index__last(head); in auxtrace_index__auxtrace_event()
854 if (!auxtrace_index) in auxtrace_index__auxtrace_event()
857 nr = auxtrace_index->nr; in auxtrace_index__auxtrace_event()
858 auxtrace_index->entries[nr].file_offset = file_offset; in auxtrace_index__auxtrace_event()
859 auxtrace_index->entries[nr].sz = event->header.size; in auxtrace_index__auxtrace_event()
860 auxtrace_index->nr += 1; in auxtrace_index__auxtrace_event()
866 struct auxtrace_index *auxtrace_index) in auxtrace_index__do_write() argument
871 for (i = 0; i < auxtrace_index->nr; i++) { in auxtrace_index__do_write()
872 ent.file_offset = auxtrace_index->entries[i].file_offset; in auxtrace_index__do_write()
873 ent.sz = auxtrace_index->entries[i].sz; in auxtrace_index__do_write()
882 struct auxtrace_index *auxtrace_index; in auxtrace_index__write() local
886 list_for_each_entry(auxtrace_index, head, list) in auxtrace_index__write()
887 total += auxtrace_index->nr; in auxtrace_index__write()
892 list_for_each_entry(auxtrace_index, head, list) { in auxtrace_index__write()
893 err = auxtrace_index__do_write(fd, auxtrace_index); in auxtrace_index__write()
904 struct auxtrace_index *auxtrace_index; in auxtrace_index__process_entry() local
911 auxtrace_index = auxtrace_index__last(head); in auxtrace_index__process_entry()
912 if (!auxtrace_index) in auxtrace_index__process_entry()
915 nr = auxtrace_index->nr; in auxtrace_index__process_entry()
917 auxtrace_index->entries[nr].file_offset = in auxtrace_index__process_entry()
919 auxtrace_index->entries[nr].sz = bswap_64(ent.sz); in auxtrace_index__process_entry()
921 auxtrace_index->entries[nr].file_offset = ent.file_offset; in auxtrace_index__process_entry()
922 auxtrace_index->entries[nr].sz = ent.sz; in auxtrace_index__process_entry()
925 auxtrace_index->nr = nr + 1; in auxtrace_index__process_entry()
933 struct list_head *head = &session->auxtrace_index; in auxtrace_index__process()
967 struct auxtrace_index *auxtrace_index; in auxtrace_queues__process_index() local
975 list_for_each_entry(auxtrace_index, &session->auxtrace_index, list) { in auxtrace_queues__process_index()
976 for (i = 0; i < auxtrace_index->nr; i++) { in auxtrace_queues__process_index()
977 ent = &auxtrace_index->entries[i]; in auxtrace_queues__process_index()