|
@@ -2860,44 +2860,44 @@ static void test_ftrace_alive(struct seq_file *m)
|
|
|
{
|
|
|
if (!ftrace_is_dead())
|
|
|
return;
|
|
|
- seq_printf(m, "# WARNING: FUNCTION TRACING IS CORRUPTED\n");
|
|
|
- seq_printf(m, "# MAY BE MISSING FUNCTION EVENTS\n");
|
|
|
+ seq_puts(m, "# WARNING: FUNCTION TRACING IS CORRUPTED\n");
|
|
|
+ seq_puts(m, "# MAY BE MISSING FUNCTION EVENTS\n");
|
|
|
}
|
|
|
|
|
|
#ifdef CONFIG_TRACER_MAX_TRACE
|
|
|
static void show_snapshot_main_help(struct seq_file *m)
|
|
|
{
|
|
|
- seq_printf(m, "# echo 0 > snapshot : Clears and frees snapshot buffer\n");
|
|
|
- seq_printf(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n");
|
|
|
- seq_printf(m, "# Takes a snapshot of the main buffer.\n");
|
|
|
- seq_printf(m, "# echo 2 > snapshot : Clears snapshot buffer (but does not allocate or free)\n");
|
|
|
- seq_printf(m, "# (Doesn't have to be '2' works with any number that\n");
|
|
|
- seq_printf(m, "# is not a '0' or '1')\n");
|
|
|
+ seq_puts(m, "# echo 0 > snapshot : Clears and frees snapshot buffer\n");
|
|
|
+ seq_puts(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n");
|
|
|
+ seq_puts(m, "# Takes a snapshot of the main buffer.\n");
|
|
|
+ seq_puts(m, "# echo 2 > snapshot : Clears snapshot buffer (but does not allocate or free)\n");
|
|
|
+ seq_puts(m, "# (Doesn't have to be '2' works with any number that\n");
|
|
|
+ seq_puts(m, "# is not a '0' or '1')\n");
|
|
|
}
|
|
|
|
|
|
static void show_snapshot_percpu_help(struct seq_file *m)
|
|
|
{
|
|
|
- seq_printf(m, "# echo 0 > snapshot : Invalid for per_cpu snapshot file.\n");
|
|
|
+ seq_puts(m, "# echo 0 > snapshot : Invalid for per_cpu snapshot file.\n");
|
|
|
#ifdef CONFIG_RING_BUFFER_ALLOW_SWAP
|
|
|
- seq_printf(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n");
|
|
|
- seq_printf(m, "# Takes a snapshot of the main buffer for this cpu.\n");
|
|
|
+ seq_puts(m, "# echo 1 > snapshot : Allocates snapshot buffer, if not already allocated.\n");
|
|
|
+ seq_puts(m, "# Takes a snapshot of the main buffer for this cpu.\n");
|
|
|
#else
|
|
|
- seq_printf(m, "# echo 1 > snapshot : Not supported with this kernel.\n");
|
|
|
- seq_printf(m, "# Must use main snapshot file to allocate.\n");
|
|
|
+ seq_puts(m, "# echo 1 > snapshot : Not supported with this kernel.\n");
|
|
|
+ seq_puts(m, "# Must use main snapshot file to allocate.\n");
|
|
|
#endif
|
|
|
- seq_printf(m, "# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)\n");
|
|
|
- seq_printf(m, "# (Doesn't have to be '2' works with any number that\n");
|
|
|
- seq_printf(m, "# is not a '0' or '1')\n");
|
|
|
+ seq_puts(m, "# echo 2 > snapshot : Clears this cpu's snapshot buffer (but does not allocate)\n");
|
|
|
+ seq_puts(m, "# (Doesn't have to be '2' works with any number that\n");
|
|
|
+ seq_puts(m, "# is not a '0' or '1')\n");
|
|
|
}
|
|
|
|
|
|
static void print_snapshot_help(struct seq_file *m, struct trace_iterator *iter)
|
|
|
{
|
|
|
if (iter->tr->allocated_snapshot)
|
|
|
- seq_printf(m, "#\n# * Snapshot is allocated *\n#\n");
|
|
|
+ seq_puts(m, "#\n# * Snapshot is allocated *\n#\n");
|
|
|
else
|
|
|
- seq_printf(m, "#\n# * Snapshot is freed *\n#\n");
|
|
|
+ seq_puts(m, "#\n# * Snapshot is freed *\n#\n");
|
|
|
|
|
|
- seq_printf(m, "# Snapshot commands:\n");
|
|
|
+ seq_puts(m, "# Snapshot commands:\n");
|
|
|
if (iter->cpu_file == RING_BUFFER_ALL_CPUS)
|
|
|
show_snapshot_main_help(m);
|
|
|
else
|
|
@@ -3251,7 +3251,7 @@ static int t_show(struct seq_file *m, void *v)
|
|
|
if (!t)
|
|
|
return 0;
|
|
|
|
|
|
- seq_printf(m, "%s", t->name);
|
|
|
+ seq_puts(m, t->name);
|
|
|
if (t->next)
|
|
|
seq_putc(m, ' ');
|
|
|
else
|
|
@@ -5753,10 +5753,10 @@ ftrace_snapshot_print(struct seq_file *m, unsigned long ip,
|
|
|
|
|
|
seq_printf(m, "%ps:", (void *)ip);
|
|
|
|
|
|
- seq_printf(m, "snapshot");
|
|
|
+ seq_puts(m, "snapshot");
|
|
|
|
|
|
if (count == -1)
|
|
|
- seq_printf(m, ":unlimited\n");
|
|
|
+ seq_puts(m, ":unlimited\n");
|
|
|
else
|
|
|
seq_printf(m, ":count=%ld\n", count);
|
|
|
|