Searched refs:payload_size (Results 1 – 2 of 2) sorted by relevance
76 static struct trace_entry *trace_alloc_entry(struct trace_buffer *tb, int payload_size) in trace_alloc_entry() argument80 e = trace_alloc(tb, sizeof(*e) + payload_size); in trace_alloc_entry()82 e->length = payload_size; in trace_alloc_entry()
78 size_t payload_size = nr_cpus * sizeof(int); in cpu_map__trim_new() local79 struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + payload_size); in cpu_map__trim_new()83 memcpy(cpus->map, tmp_cpus, payload_size); in cpu_map__trim_new()