aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/trace_seq.c30
1 files changed, 0 insertions, 30 deletions
diff --git a/kernel/trace/trace_seq.c b/kernel/trace/trace_seq.c
index 88c0f80f0a1f..1f24ed99dca2 100644
--- a/kernel/trace/trace_seq.c
+++ b/kernel/trace/trace_seq.c
@@ -342,36 +342,6 @@ int trace_seq_putmem_hex(struct trace_seq *s, const void *mem,
342EXPORT_SYMBOL_GPL(trace_seq_putmem_hex); 342EXPORT_SYMBOL_GPL(trace_seq_putmem_hex);
343 343
344/** 344/**
345 * trace_seq_reserve - reserve space on the sequence buffer
346 * @s: trace sequence descriptor
347 * @len: The amount to reserver.
348 *
349 * If for some reason there is a need to save some space on the
350 * buffer to fill in later, this function is used for that purpose.
351 * The given length will be reserved and the pointer to that
352 * location on the buffer is returned, unless there is not enough
353 * buffer left to hold the given length then NULL is returned.
354 */
355void *trace_seq_reserve(struct trace_seq *s, unsigned int len)
356{
357 void *ret;
358
359 if (s->full)
360 return NULL;
361
362 if (len > TRACE_SEQ_BUF_LEFT(s)) {
363 s->full = 1;
364 return NULL;
365 }
366
367 ret = s->buffer + s->len;
368 s->len += len;
369
370 return ret;
371}
372EXPORT_SYMBOL_GPL(trace_seq_reserve);
373
374/**
375 * trace_seq_path - copy a path into the sequence buffer 345 * trace_seq_path - copy a path into the sequence buffer
376 * @s: trace sequence descriptor 346 * @s: trace sequence descriptor
377 * @path: path to write into the sequence buffer. 347 * @path: path to write into the sequence buffer.