Lines Matching defs:traceframe
953 struct traceframe
955 /* Number of the tracepoint that collected this traceframe. A value
972 /* The size of the EOB marker, in bytes. A traceframe with zeroed
974 #define TRACEFRAME_EOB_MARKER_SIZE offsetof (struct traceframe, data)
1015 several bytes at and after this pointer, so that traceframe
1178 /* Macro that returns a pointer to the first traceframe in the buffer. */
1180 #define FIRST_TRACEFRAME() ((struct traceframe *) trace_buffer_start)
1182 /* Macro that returns a pointer to the next traceframe in the buffer.
1187 (((unsigned char *) (TF)) + sizeof (struct traceframe) + (TF)->data_size)
1190 ((struct traceframe *) (NEXT_TRACEFRAME_1 (TF) \
1347 static CORE_ADDR traceframe_get_pc (struct traceframe *tframe);
1372 struct traceframe *tframe,
1431 /* A traceframe with zeroed fields marks the end of trace data. */
1432 ((struct traceframe *) trace_buffer_free)->tpnum = 0;
1433 ((struct traceframe *) trace_buffer_free)->data_size = 0;
1445 struct traceframe ipa_traceframe = { 0 };
1458 /* A traceframe with zeroed fields marks the end of trace data. */
1465 /* A traceframe with zeroed fields marks the end of trace data. */
1525 struct traceframe *oldest;
1530 (long) amt, (long) sizeof (struct traceframe));
1591 space later, if/when the wrapped-around traceframe is
1631 oldest traceframe and see if that helps. */
1650 /* If we freed the traceframe that wrapped around, go back
1660 trace_debug ("Discarded a traceframe\n"
1684 tbctrl->free += (amt - sizeof (struct traceframe));
1746 ((struct traceframe *) tbctrl->free)->tpnum = 0;
1747 ((struct traceframe *) tbctrl->free)->data_size = 0;
1751 amt -= sizeof (struct traceframe);
2188 /* Add a raw traceframe for the given tracepoint. */
2190 static struct traceframe *
2193 struct traceframe *tframe;
2196 = (struct traceframe *) trace_buffer_alloc (sizeof (struct traceframe));
2207 /* Add a block to the traceframe currently being worked on. */
2210 add_traceframe_block (struct traceframe *tframe,
2231 /* Flag that the current traceframe is finished. */
2234 finish_traceframe (struct traceframe *tframe)
2242 /* Given a traceframe number NUM, find the NUMth traceframe in the
2245 static struct traceframe *
2248 struct traceframe *tframe;
2264 get_traceframe_address (struct traceframe *tframe)
2280 /* Search for the next traceframe whose address is inside or outside
2283 static struct traceframe *
2288 struct traceframe *tframe;
2314 /* Search for the next traceframe recorded by the given tracepoint.
2318 static struct traceframe *
2322 struct traceframe *tframe;
2833 the tsv, and it might not be available in a traceframe. */
2862 even while looking at a traceframe. */
3541 struct traceframe *tframe;
3550 trace_debug ("Want to find next traceframe at pc=0x%s", paddress (pc));
3559 trace_debug ("Want to find next traceframe in the range 0x%s to 0x%s",
3569 trace_debug ("Want to find next traceframe "
3579 trace_debug ("Want to find next traceframe for tracepoint %d", tpnum);
3593 trace_debug ("Want to look at traceframe %d", tfnum);
4595 struct traceframe *tframe);
4605 struct traceframe *tframe;
4621 trace_debug ("Making new traceframe for tracepoint %d at 0x%s, hit %" PRIu64,
4654 struct traceframe *tframe;
4657 trace_debug ("Making new step traceframe for "
4751 struct traceframe *tframe,
5045 type in a traceframe. */
5058 /* Walk over all traceframe blocks of the traceframe buffer starting
5077 trace_debug ("traceframe %d has no data", tfnum);
5081 /* Iterate through a traceframe's blocks, looking for a block of the
5125 trace_debug ("traceframe %d has unknown block type 0x%x",
5134 /* Look for the block of type TYPE_WANTED in the traceframe starting
5135 at DATABASE of DATASIZE bytes long. TFNUM is the traceframe
5147 traceframe_find_regblock (struct traceframe *tframe, int tfnum)
5156 trace_debug ("traceframe %d has no register data", tfnum);
5161 /* Get registers from a traceframe. */
5168 struct traceframe *tframe;
5174 trace_debug ("traceframe %d not found", tfnum);
5198 traceframe_get_pc (struct traceframe *tframe)
5219 struct traceframe *tframe;
5231 trace_debug ("traceframe %d not found", tfnum);
5238 /* Iterate through a traceframe's blocks, looking for memory. */
5248 trace_debug ("traceframe %d has %d bytes at %s",
5269 trace_debug ("traceframe %d has no memory data for the desired region",
5281 struct traceframe *tframe;
5293 trace_debug ("no current traceframe");
5301 trace_debug ("traceframe %d not found", tfnum);
5308 /* Iterate through a traceframe's blocks, looking for the last
5318 trace_debug ("traceframe %d has variable %d", tfnum, vnum);
5332 trace_debug ("traceframe %d has no data for variable %d",
5345 struct traceframe *tframe;
5356 trace_debug ("traceframe %d not found", tfnum);
5363 /* Iterate through a traceframe's blocks, looking for static
5384 trace_debug ("traceframe %d has no static trace data", tfnum);
5390 /* Callback for traceframe_walk_blocks. Builds a traceframe-info
5392 traceframe-info object being built. */
5438 /* Build a traceframe-info object for traceframe number TFNUM into
5444 struct traceframe *tframe;
5452 trace_debug ("traceframe %d not found", tfnum);
5456 buffer_grow_str (buffer, "<traceframe-info>\n");
5459 buffer_grow_str0 (buffer, "</traceframe-info>\n");
6362 have finished a traceframe between the last read of these
6423 ((TF) + sizeof (struct traceframe) + (TFOBJ)->data_size)
6436 struct traceframe *tframe;
6438 struct traceframe ipa_tframe;
6441 offsetof (struct traceframe, data)))
6442 error ("Uploading: couldn't read traceframe at %s\n", paddress (tf));
6471 + offsetof (struct traceframe, data),
6473 error ("Uploading: Couldn't read traceframe data at %s\n",
6474 paddress (tf + offsetof (struct traceframe, data)));
6477 trace_debug ("Uploading: traceframe didn't fit");
6483 /* If we freed the traceframe that wrapped around, go back
6513 trace_debug ("Uploaded a traceframe\n"
6745 struct traceframe *tframe)