From: Peter Korsgaard <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/1] dropwatch: new package
Date: Mon, 22 Jul 2013 07:31:06 +0200 [thread overview]
Message-ID: <8761w3qhyd.fsf@dell.be.48ers.dk> (raw)
In-Reply-To: <CAEvN+1jnT+8CXC+gtHO-Pu1zPz9K181f6D6TsZ01CErbiuC6jw@mail.gmail.com> (Tzu-Jung Lee's message of "Mon, 22 Jul 2013 08:00:48 +0800")
>>>>> "Tzu-Jung" == Tzu-Jung Lee <roylee17@gmail.com> writes:
Hi,
T> +++ b/package/dropwatch/dropwatch-1.4-build.patch
T> @@ -0,0 +1,27 @@
T> +From 03bab84ca3f102274837e83ee6da4c997a9da018 Mon Sep 17 00:00:00 2001
T> +From: Tzu-Jung Lee <tjlee@ambarella.com>
T> +Date: Fri, 12 Jul 2013 20:00:57 +0800
T> +Subject: [PATCH] build: modify hardcoded gcc to support buildroot
T> +
>>
>> It isn't just about buildroot, it is for everything not just using
>> 'gcc'.
>> Did you send this patch upstream?
T> I'm sending one now, and will feedback once I got ... feedback :-)
Great, thanks.
T> +define DROPWATCH_INSTALL_TARGET_CMDS
T> + cp $(@D)/src/dropwatch $(TARGET_DIR)/usr/bin
>>
>> We normally use
>> $(INSTALL) -D -m 0755 $(@D)/src/dropwatch $(TARGET_DIR)/usr/bin/dropwatch
T> done.
>> And normally put it below the build step.
T> Do you mean to put it under BUILD_CMD, instead, or both BUILD and INSTALL_TARGET
Under BUILD_CMDS, so they are listed in the order that they get
executed.
>> Does it really make sense to put in usr/bin? Don't you need root
>> permissions to listen for these events?
T> Not really. It doesn't require root permission.
Ahh, ok.
>>
>> From the website I see it apparently relies on some out of tree netlink
>> patches:
>>
>> Normally, monitoring for dropped packets requires the creation of a
>> script that periodically polls all the aformentioned interfaces,
>> checking for a change in various counter values. Dropwatch instead
>> listens on a netlink socket for the kernel to inform userspace (apps
>> like dropwatch and any others), that a packet has been dropped. This of
>> course implies that the kernel has some sort of functionality to this
>> end. That functionality (called the netlink Drop Monitor protocol), is
>> currently being reviewed upstream. For those who would like to
>> experiment with dropwatch now, you can either retrieve the appropriate
>> kernel patches from the netdev mailing list, or download them here
>>
>> Is that still the case? Have these been reviewed on the netdev list?
>> Have they been accepted/rejected?
T> Yes, they've been merged for quite some time.
Ahh, great!
--
Bye, Peter Korsgaard
prev parent reply other threads:[~2013-07-22 5:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-20 1:34 [Buildroot] [PATCH v2 1/1] dropwatch: new package Tzu-Jung Lee
2013-07-21 22:35 ` Peter Korsgaard
2013-07-22 0:00 ` Tzu-Jung Lee
2013-07-22 0:09 ` [Buildroot] [PATCH v3 " Tzu-Jung Lee
2013-07-22 6:55 ` Peter Korsgaard
2013-07-22 5:31 ` Peter Korsgaard [this message]
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=8761w3qhyd.fsf@dell.be.48ers.dk \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/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