From: Andrew Lunn <andrew@lunn.ch>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@lists.open-mesh.org>
Cc: Marek Lindner <lindner_marek@yahoo.de>, b.a.t.m.a.n@lists.open-mesh.net
Subject: Re: [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: add routing debug log accessible via debugfs
Date: Wed, 23 Jun 2010 17:09:13 +0200 [thread overview]
Message-ID: <20100623150913.GJ15420@lunn.ch> (raw)
In-Reply-To: <1277302839-20197-1-git-send-email-lindner_marek@yahoo.de>
Hi Marek
> +int debug_log(struct bat_priv *bat_priv, char *fmt, ...)
> +{
> + va_list args;
> + char tmp_log_buf[256];
> +
> + va_start(args, fmt);
> + vscnprintf(tmp_log_buf, sizeof(tmp_log_buf), fmt, args);
> + fdebug_log(bat_priv->debug_log, "[%10u] %s",
> + (jiffies / HZ), tmp_log_buf);
> + va_end(args);
Thinking forward to when we try to get multiple meshes working, or are
trying to debug why they don't work together...
There will be a ring buffer per mesh. When debugging problems between
meshes it is likely both logs will be combined performing a merge
based on the timestamp. However at this point you have lost
information about which line belongs to which mesh. Could we maybe
include the soft interface name in the output?
Also, do you really want to do jiffies / HZ? You are throwing away
useful information. Either keep it as jiffies, or scale the remainder
to ms and print it as well?
Andrew
next prev parent reply other threads:[~2010-06-23 15:09 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-23 14:20 [B.A.T.M.A.N.] batman-adv debug logging Marek Lindner
2010-06-23 14:20 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: add routing debug log accessible via debugfs Marek Lindner
2010-06-23 14:51 ` Andrew Lunn
2010-06-23 15:02 ` Marek Lindner
2010-06-23 15:12 ` Andrew Lunn
2010-06-23 15:53 ` Marek Lindner
2010-06-23 15:09 ` Andrew Lunn [this message]
2010-06-23 15:58 ` Marek Lindner
2010-06-23 16:12 ` Andrew Lunn
2010-06-23 15:17 ` Sven Eckelmann
2010-06-23 16:00 ` Marek Lindner
2010-06-23 15:23 ` Andrew Lunn
2010-06-23 16:03 ` Marek Lindner
2010-06-23 16:18 ` Andrew Lunn
2010-06-23 14:20 ` [B.A.T.M.A.N.] [PATCH 2/2] batctl: add debug log support Marek Lindner
-- strict thread matches above, loose matches on Subject: below --
2010-06-27 0:32 [B.A.T.M.A.N.] batman-adv debug logging (v2) Marek Lindner
2010-06-27 0:33 ` [B.A.T.M.A.N.] [PATCH 1/2] batman-adv: add routing debug log accessible via debugfs Marek Lindner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100623150913.GJ15420@lunn.ch \
--to=andrew@lunn.ch \
--cc=b.a.t.m.a.n@lists.open-mesh.net \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
--cc=lindner_marek@yahoo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox