Lines Matching defs:traceframe
949 struct traceframe
951 /* Number of the tracepoint that collected this traceframe. A value
968 /* The size of the EOB marker, in bytes. A traceframe with zeroed
970 #define TRACEFRAME_EOB_MARKER_SIZE offsetof (struct traceframe, data)
1011 several bytes at and after this pointer, so that traceframe
1174 /* Macro that returns a pointer to the first traceframe in the buffer. */
1176 #define FIRST_TRACEFRAME() ((struct traceframe *) trace_buffer_start)
1178 /* Macro that returns a pointer to the next traceframe in the buffer.
1183 (((unsigned char *) (TF)) + sizeof (struct traceframe) + (TF)->data_size)
1186 ((struct traceframe *) (NEXT_TRACEFRAME_1 (TF) \
1343 static CORE_ADDR traceframe_get_pc (struct traceframe *tframe);
1368 struct traceframe *tframe,
1427 /* A traceframe with zeroed fields marks the end of trace data. */
1428 ((struct traceframe *) trace_buffer_free)->tpnum = 0;
1429 ((struct traceframe *) trace_buffer_free)->data_size = 0;
1441 struct traceframe ipa_traceframe = { 0 };
1454 /* A traceframe with zeroed fields marks the end of trace data. */
1461 /* A traceframe with zeroed fields marks the end of trace data. */
1521 struct traceframe *oldest;
1526 (long) amt, (long) sizeof (struct traceframe));
1587 space later, if/when the wrapped-around traceframe is
1627 oldest traceframe and see if that helps. */
1646 /* If we freed the traceframe that wrapped around, go back
1656 trace_debug ("Discarded a traceframe\n"
1680 tbctrl->free += (amt - sizeof (struct traceframe));
1742 ((struct traceframe *) tbctrl->free)->tpnum = 0;
1743 ((struct traceframe *) tbctrl->free)->data_size = 0;
1747 amt -= sizeof (struct traceframe);
2184 /* Add a raw traceframe for the given tracepoint. */
2186 static struct traceframe *
2189 struct traceframe *tframe;
2192 = (struct traceframe *) trace_buffer_alloc (sizeof (struct traceframe));
2203 /* Add a block to the traceframe currently being worked on. */
2206 add_traceframe_block (struct traceframe *tframe,
2227 /* Flag that the current traceframe is finished. */
2230 finish_traceframe (struct traceframe *tframe)
2238 /* Given a traceframe number NUM, find the NUMth traceframe in the
2241 static struct traceframe *
2244 struct traceframe *tframe;
2260 get_traceframe_address (struct traceframe *tframe)
2276 /* Search for the next traceframe whose address is inside or outside
2279 static struct traceframe *
2284 struct traceframe *tframe;
2310 /* Search for the next traceframe recorded by the given tracepoint.
2314 static struct traceframe *
2318 struct traceframe *tframe;
2829 the tsv, and it might not be available in a traceframe. */
2858 even while looking at a traceframe. */
3537 struct traceframe *tframe;
3546 trace_debug ("Want to find next traceframe at pc=0x%s", paddress (pc));
3555 trace_debug ("Want to find next traceframe in the range 0x%s to 0x%s",
3565 trace_debug ("Want to find next traceframe "
3575 trace_debug ("Want to find next traceframe for tracepoint %d", tpnum);
3589 trace_debug ("Want to look at traceframe %d", tfnum);
4591 struct traceframe *tframe);
4601 struct traceframe *tframe;
4617 trace_debug ("Making new traceframe for tracepoint %d at 0x%s, hit %" PRIu64,
4650 struct traceframe *tframe;
4653 trace_debug ("Making new step traceframe for "
4747 struct traceframe *tframe,
5038 type in a traceframe. */
5051 /* Walk over all traceframe blocks of the traceframe buffer starting
5070 trace_debug ("traceframe %d has no data", tfnum);
5074 /* Iterate through a traceframe's blocks, looking for a block of the
5118 trace_debug ("traceframe %d has unknown block type 0x%x",
5127 /* Look for the block of type TYPE_WANTED in the traceframe starting
5128 at DATABASE of DATASIZE bytes long. TFNUM is the traceframe
5140 traceframe_find_regblock (struct traceframe *tframe, int tfnum)
5149 trace_debug ("traceframe %d has no register data", tfnum);
5154 /* Get registers from a traceframe. */
5161 struct traceframe *tframe;
5167 trace_debug ("traceframe %d not found", tfnum);
5191 traceframe_get_pc (struct traceframe *tframe)
5212 struct traceframe *tframe;
5224 trace_debug ("traceframe %d not found", tfnum);
5231 /* Iterate through a traceframe's blocks, looking for memory. */
5241 trace_debug ("traceframe %d has %d bytes at %s",
5262 trace_debug ("traceframe %d has no memory data for the desired region",
5274 struct traceframe *tframe;
5286 trace_debug ("no current traceframe");
5294 trace_debug ("traceframe %d not found", tfnum);
5301 /* Iterate through a traceframe's blocks, looking for the last
5311 trace_debug ("traceframe %d has variable %d", tfnum, vnum);
5325 trace_debug ("traceframe %d has no data for variable %d",
5338 struct traceframe *tframe;
5349 trace_debug ("traceframe %d not found", tfnum);
5356 /* Iterate through a traceframe's blocks, looking for static
5377 trace_debug ("traceframe %d has no static trace data", tfnum);
5383 /* Callback for traceframe_walk_blocks. Builds a traceframe-info
5384 object. DATA is pointer to a string holding the traceframe-info
5431 /* Build a traceframe-info object for traceframe number TFNUM into
5437 struct traceframe *tframe;
5445 trace_debug ("traceframe %d not found", tfnum);
5449 *buffer += "<traceframe-info>\n";
5452 *buffer += "</traceframe-info>\n";
6355 have finished a traceframe between the last read of these
6416 ((TF) + sizeof (struct traceframe) + (TFOBJ)->data_size)
6429 struct traceframe *tframe;
6431 struct traceframe ipa_tframe;
6434 offsetof (struct traceframe, data)))
6435 error ("Uploading: couldn't read traceframe at %s\n", paddress (tf));
6464 + offsetof (struct traceframe, data),
6466 error ("Uploading: Couldn't read traceframe data at %s\n",
6467 paddress (tf + offsetof (struct traceframe, data)));
6470 trace_debug ("Uploading: traceframe didn't fit");
6476 /* If we freed the traceframe that wrapped around, go back
6506 trace_debug ("Uploaded a traceframe\n"
6738 struct traceframe *tframe)