Lines Matching defs:tscratch
6068 struct trace_scratch *tscratch;
6079 tscratch = tr->scratch;
6082 if (!module_delta || !tscratch->nr_entries ||
6083 tscratch->entries[0].mod_addr > addr) {
6090 nr_entries = tscratch->nr_entries;
6092 tscratch->entries[nr_entries - 1].mod_addr < addr)
6096 tscratch->entries,
6098 sizeof(tscratch->entries[0]),
6101 idx = entry - tscratch->entries;
6111 struct trace_scratch *tscratch;
6115 tscratch = tr->scratch;
6116 if (!tscratch)
6120 if (struct_size(tscratch, entries, tscratch->nr_entries + 1) > size)
6123 entry = &tscratch->entries[tscratch->nr_entries];
6125 tscratch->nr_entries++;
6142 struct trace_scratch *tscratch;
6155 struct trace_scratch *tscratch = tr->scratch;
6157 tscratch->clock_id = tr->clock_id;
6158 memset(tscratch->entries, 0,
6159 flex_array_size(tscratch, entries, tscratch->nr_entries));
6160 tscratch->nr_entries = 0;
6180 tscratch = tr->scratch;
6186 tscratch->text_addr = (unsigned long)_text;
7015 struct trace_scratch *tscratch = tr->scratch;
7024 if (!tscratch || !(tr->flags & TRACE_ARRAY_FL_LAST_BOOT))
7030 if (index >= tscratch->nr_entries)
7033 return &tscratch->entries[index];
7050 struct trace_scratch *tscratch = tr->scratch;
7059 if (tscratch && (tr->flags & TRACE_ARRAY_FL_LAST_BOOT))
7060 seq_printf(m, "%lx\t[kernel]\n", tscratch->text_addr);
7395 struct trace_scratch *tscratch = tr->scratch;
7397 tscratch->clock_id = i;
9527 struct trace_scratch *tscratch;
9532 tscratch = tr->scratch;
9534 for (i = 0; i < tscratch->nr_entries; i++) {
9535 entry = &tscratch->entries[i];
9563 struct trace_scratch *tscratch, unsigned int size)
9569 if (!tscratch)
9572 tr->scratch = tscratch;
9575 if (tscratch->text_addr)
9576 tr->text_delta = (unsigned long)_text - tscratch->text_addr;
9578 if (struct_size(tscratch, entries, tscratch->nr_entries) > size)
9582 for (i = 0; i < tscratch->nr_entries; i++) {
9585 entry = &tscratch->entries[i];
9598 nr_entries = tscratch->nr_entries;
9599 sort_r(tscratch->entries, nr_entries, sizeof(struct trace_mod_entry),
9617 if (tscratch->clock_id != tr->clock_id) {
9618 if (tscratch->clock_id >= ARRAY_SIZE(trace_clocks) ||
9619 tracing_set_clock(tr, trace_clocks[tscratch->clock_id].name) < 0) {
9627 memset(tscratch, 0, size);
9634 struct trace_scratch *tscratch;
9646 struct_size(tscratch, entries, 128));
9648 tscratch = ring_buffer_meta_scratch(buf->buffer, &scratch_size);
9649 setup_trace_scratch(tr, tscratch, scratch_size);