Lines Matching refs:traceframe
846 struct traceframe
848 /* Number of the tracepoint that collected this traceframe. A value
865 /* The size of the EOB marker, in bytes. A traceframe with zeroed
867 #define TRACEFRAME_EOB_MARKER_SIZE offsetof (struct traceframe, data)
908 several bytes at and after this pointer, so that traceframe
1071 /* Macro that returns a pointer to the first traceframe in the buffer. */
1073 #define FIRST_TRACEFRAME() ((struct traceframe *) trace_buffer_start)
1075 /* Macro that returns a pointer to the next traceframe in the buffer.
1080 (((unsigned char *) (TF)) + sizeof (struct traceframe) + (TF)->data_size)
1083 ((struct traceframe *) (NEXT_TRACEFRAME_1 (TF) \
1249 static CORE_ADDR traceframe_get_pc (struct traceframe *tframe);
1274 struct traceframe *tframe,
1333 /* A traceframe with zeroed fields marks the end of trace data. */
1334 ((struct traceframe *) trace_buffer_free)->tpnum = 0;
1335 ((struct traceframe *) trace_buffer_free)->data_size = 0;
1347 struct traceframe ipa_traceframe = { 0 };
1360 /* A traceframe with zeroed fields marks the end of trace data. */
1367 /* A traceframe with zeroed fields marks the end of trace data. */
1427 struct traceframe *oldest;
1432 (long) amt, (long) sizeof (struct traceframe));
1493 space later, if/when the wrapped-around traceframe is
1533 oldest traceframe and see if that helps. */
1552 /* If we freed the traceframe that wrapped around, go back
1562 trace_debug ("Discarded a traceframe\n"
1586 tbctrl->free += (amt - sizeof (struct traceframe));
1648 ((struct traceframe *) tbctrl->free)->tpnum = 0;
1649 ((struct traceframe *) tbctrl->free)->data_size = 0;
1653 amt -= sizeof (struct traceframe);
2078 /* Add a raw traceframe for the given tracepoint. */
2080 static struct traceframe *
2083 struct traceframe *tframe;
2086 = (struct traceframe *) trace_buffer_alloc (sizeof (struct traceframe));
2097 /* Add a block to the traceframe currently being worked on. */
2100 add_traceframe_block (struct traceframe *tframe,
2121 /* Flag that the current traceframe is finished. */
2124 finish_traceframe (struct traceframe *tframe)
2132 /* Given a traceframe number NUM, find the NUMth traceframe in the
2135 static struct traceframe *
2138 struct traceframe *tframe;
2154 get_traceframe_address (struct traceframe *tframe)
2170 /* Search for the next traceframe whose address is inside or outside
2173 static struct traceframe *
2178 struct traceframe *tframe;
2204 /* Search for the next traceframe recorded by the given tracepoint.
2208 static struct traceframe *
2212 struct traceframe *tframe;
2688 the tsv, and it might not be available in a traceframe. */
2717 even while looking at a traceframe. */
3318 struct traceframe *tframe;
3327 trace_debug ("Want to find next traceframe at pc=0x%s", paddress (pc));
3336 trace_debug ("Want to find next traceframe in the range 0x%s to 0x%s",
3346 trace_debug ("Want to find next traceframe "
3356 trace_debug ("Want to find next traceframe for tracepoint %d", tpnum);
3370 trace_debug ("Want to look at traceframe %d", tfnum);
4318 struct traceframe *tframe;
4334 trace_debug ("Making new traceframe for tracepoint %d at 0x%s, hit %" PRIu64,
4367 struct traceframe *tframe;
4370 trace_debug ("Making new step traceframe for "
4403 struct traceframe *tframe,
4680 type in a traceframe. */
4693 /* Walk over all traceframe blocks of the traceframe buffer starting
4712 trace_debug ("traceframe %d has no data", tfnum);
4716 /* Iterate through a traceframe's blocks, looking for a block of the
4760 trace_debug ("traceframe %d has unknown block type 0x%x",
4769 /* Look for the block of type TYPE_WANTED in the traceframe starting
4770 at DATABASE of DATASIZE bytes long. TFNUM is the traceframe
4782 traceframe_find_regblock (struct traceframe *tframe, int tfnum)
4791 trace_debug ("traceframe %d has no register data", tfnum);
4796 /* Get registers from a traceframe. */
4803 struct traceframe *tframe;
4809 trace_debug ("traceframe %d not found", tfnum);
4833 traceframe_get_pc (struct traceframe *tframe)
4853 struct traceframe *tframe;
4865 trace_debug ("traceframe %d not found", tfnum);
4872 /* Iterate through a traceframe's blocks, looking for memory. */
4882 trace_debug ("traceframe %d has %d bytes at %s",
4903 trace_debug ("traceframe %d has no memory data for the desired region",
4915 struct traceframe *tframe;
4927 trace_debug ("no current traceframe");
4935 trace_debug ("traceframe %d not found", tfnum);
4942 /* Iterate through a traceframe's blocks, looking for the last
4952 trace_debug ("traceframe %d has variable %d", tfnum, vnum);
4966 trace_debug ("traceframe %d has no data for variable %d",
4971 /* Callback for traceframe_walk_blocks. Builds a traceframe-info
4972 object. DATA is pointer to a string holding the traceframe-info
5019 /* Build a traceframe-info object for traceframe number TFNUM into
5025 struct traceframe *tframe;
5033 trace_debug ("traceframe %d not found", tfnum);
5037 *buffer += "<traceframe-info>\n";
5040 *buffer += "</traceframe-info>\n";
5940 have finished a traceframe between the last read of these
6001 ((TF) + sizeof (struct traceframe) + (TFOBJ)->data_size)
6014 struct traceframe *tframe;
6016 struct traceframe ipa_tframe;
6019 offsetof (struct traceframe, data)))
6020 error ("Uploading: couldn't read traceframe at %s\n", paddress (tf));
6049 + offsetof (struct traceframe, data),
6051 error ("Uploading: Couldn't read traceframe data at %s\n",
6052 paddress (tf + offsetof (struct traceframe, data)));
6055 trace_debug ("Uploading: traceframe didn't fit");
6061 /* If we freed the traceframe that wrapped around, go back
6091 trace_debug ("Uploaded a traceframe\n"