Lines Matching defs:context
212 * commands we want to read. where the context setup happens.
324 } context;
397 intel_disassemble(&context.file->isa,
404 list_addtail(&window->base.link, &context.windows);
459 list_addtail(&window->base.link, &context.windows);
550 list_addtail(&window->base.link, &context.windows);
568 ImGui::TextColored(context.cfg.missing_color, "Page not available");
630 list_addtail(&window->base.link, &context.windows);
693 window->exec_idx = MAX2(MIN2(context.file->n_execs - 1, exec_idx), 0);
694 update_mem_for_exec(&window->mem, context.file, window->exec_idx);
771 const uint8_t *iter = context.file->execs[window->exec_idx].start;
772 while (iter < context.file->execs[window->exec_idx].end) {
774 context.file->execs[window->exec_idx].end - iter);
819 &context.cfg,
821 &context.file->devinfo,
822 context.file->spec,
832 list_addtail(&window->base.link, &context.windows);
845 hash_table_foreach(context.file->spec->registers_by_name, entry) {
862 struct window *window = &context.registers_window;
878 list_addtail(&window->link, &context.windows);
900 hash_table_foreach(context.file->spec->commands, entry) {
911 ImGui::TextColored(context.cfg.dwords_color,
914 ImGui::TextColored(context.cfg.dwords_color, "Dword %d", last_dword);
922 hash_table_foreach(context.file->spec->structs, entry) {
931 ImGui::TextColored(context.cfg.dwords_color,
946 struct window *window = &context.commands_window;
962 list_addtail(&window->link, &context.windows);
991 struct aub_viewer_cfg *cfg = &context.cfg;
1006 ImGui::Text("File name: %s", context.input_file);
1007 ImGui::Text("File size: %s", human_size(context.file->end - context.file->map));
1008 ImGui::Text("Execbufs %u", context.file->n_execs);
1009 ImGui::Text("PCI ID: 0x%x", context.file->pci_id);
1010 ImGui::Text("Application name: %s", context.file->app_name);
1011 ImGui::Text("%s", context.file->devinfo.name);
1045 struct window *window = &context.file_window;
1060 list_addtail(&window->link, &context.windows);
1072 list_for_each_entry_safe(struct window, window, &context.windows, link) {
1077 if (window == &context.file_window) {
1088 list_for_each_entry_safe(struct window, window, &context.windows, link) {
1114 glClearColor(context.cfg.clear_color.Value.x,
1115 context.cfg.clear_color.Value.y,
1116 context.cfg.clear_color.Value.z, 1.0);
1128 list_inithead(&context.windows);
1131 context.cfg = aub_viewer_cfg();
1183 memset(&context, 0, sizeof(context));
1189 context.xml_path = strdup(optarg);
1197 context.input_file = argv[optind];
1199 if (help || !context.input_file) {
1204 context.file = aub_file_open(context.input_file);
1208 context.gtk_window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
1209 gtk_window_set_title(GTK_WINDOW(context.gtk_window), "Aubinator Viewer");
1210 g_signal_connect(context.gtk_window, "delete-event", G_CALLBACK(gtk_main_quit), NULL);
1211 gtk_window_resize(GTK_WINDOW(context.gtk_window), 1280, 720);
1218 gtk_container_add(GTK_CONTAINER(context.gtk_window), gl_area);
1220 gtk_widget_show_all(context.gtk_window);
1224 free(context.xml_path);