/* The tracer may use either the sequence operations or its own copy to user routines. This function records a simple string into a special buffer (@s) for later retrieval by a sequencer or other mechanism.  */
int trace_seq_puts(struct trace_seq *s, const char *str)
/* The tracer may use either the sequence operations or its own copy to user routines. This function records a simple string into a special buffer (@s) for later retrieval by a sequencer or other mechanism.  */
int trace_seq_puts(struct trace_seq *s, const char *str)
{
	int len = strlen(str);
	if (s->full)
		return 0;
	if (len > ((PAGE_SIZE - 1) - s->len)) {
		s->full = 1;
		return 0;
	}
	memcpy(s->buffer + s->len, str, len);
	s->len += len;
	return len;
}