From: Zubin Mithra
* defs.h: Add Add header files netinet/in.h, sys/socket.h,
arpa/inet.h, linux/netlink.h and linux/inet_diag.h.
Change type of show_fd_path to unsigned int.
Add macros SOCK_DIAG_BY_FAMILY, SOCKET_BUFFER_SIZE.
Add structs sock_diag_req, inet_diag_req_v2.
* strace.c (init):
Hello,
On Tue, Jul 1, 2014 at 3:13 PM, wrote:
> From: Zubin Mithra
>
> * defs.h (show_fd_path): Change type to unsigned int.
> * strace.c (show_fd_path): Update usage to count y flag.
> (usage): Update to add -yy option.
> * util.c (print_tracee_cwd): New function.
> (printpathn): Update to use
Hi,
On Thu, 7 Aug 2014 19:19:47 +0530, Zubin Mithra wrote:
>>
>> System calls that adding and removing a socket from fd table of process are
>> enumerable. So you can cache the response from the netlink socket safely
>> if the target program is not multi-threaded.
>>
>> * adding
>>
>> + socket
Hi Masatake !
Thank you for reviewing the patch!
>
> It is nice if you prepare a test case, too. See code/tests/.
>
Sure, I'll check out how tests are done and add relevant tests.
> To make adding more families a bit easier how do you think use switch/case
> instead of if/else? Like:
>
>
> From: Zubin Mithra
>
> * defs.h: Add Add header files netinet/in.h, sys/socket.h,
> arpa/inet.h, linux/netlink.h and linux/inet_diag.h.
> Change type of show_fd_path to unsigned int.
> Add macros SOCK_DIAG_BY_FAMILY, SOCKET_BUFFER_SIZE.
> Add structs sock_diag_req, inet_diag_req_v2.
> * s
On Thu 07 Aug 2014 16:10:42 Dmitry V. Levin wrote:
> On Wed, Aug 06, 2014 at 11:43:49PM -0400, Mike Frysinger wrote:
> > > I've just pushed commit 3c49b02e98af0aabfffd20fd8b34b1f71b8cffb9
> > > that should fix this:
> > > $ grep -l '^FAIL: uio' tests/remote-test.*.log
> > > tests/remote-test.hake.l
From: Zubin Mithra
* defs.h: Add Add header files netinet/in.h, sys/socket.h,
arpa/inet.h, linux/netlink.h and linux/inet_diag.h.
Change type of show_fd_path to unsigned int.
Add macros SOCK_DIAG_BY_FAMILY, SOCKET_BUFFER_SIZE.
Add structs sock_diag_req, inet_diag_req_v2.
* strace.c (init):
On Wed, Aug 06, 2014 at 11:43:49PM -0400, Mike Frysinger wrote:
> > I've just pushed commit 3c49b02e98af0aabfffd20fd8b34b1f71b8cffb9
> > that should fix this:
> > $ grep -l '^FAIL: uio' tests/remote-test.*.log
> > tests/remote-test.hake.log
> > tests/remote-test.lgentoo3.log
> > tests/remote-test.p
On Thu 07 Aug 2014 09:48:34 Zubin Mithra wrote:
> On Wed, Aug 6, 2014 at 11:10 PM, Dmitry V. Levin wrote:
> > Looks like there are no other viable options but libnl.
>
> Do we really need libnl? So far the code samples I have seen that does not
> use libnl seems fairly straightforward.
if you can
On Thu 07 Aug 2014 09:40:56 Zubin Mithra wrote:
> I was trying out some netlink socket code and I needed to use the
> header file "linux/sock_diag.h".
>
> Doing a locate for the file gave me the following result(I do have
> kernel headers installed and I'm on an Ubuntu machine).
>
> $ locate linu
On Thu, 7 Aug 2014 09:48:34 +0530, Zubin Mithra wrote:
> On Wed, Aug 6, 2014 at 11:10 PM, Dmitry V. Levin wrote:
>> On Tue, Aug 05, 2014 at 11:58:35PM -0400, Mike Frysinger wrote:
>>> On Wed 06 Aug 2014 12:31:36 Masatake YAMATO wrote:
>> [...]
>>> > A problem is that many libraries wrapping netli
11 matches
Mail list logo