Mirror of the lttng-dev mailing list
 help / color / mirror / Atom feed
From: jdesfossez@efficios.com (Julien Desfossez)
Subject: [lttng-dev] [PATCH lttng-modules v6 0/5] Extract payload from polling syscalls
Date: Fri, 29 Apr 2016 18:53:19 -0400	[thread overview]
Message-ID: <1461970404-27468-1-git-send-email-jdesfossez@efficios.com> (raw)

Patch serie to extract the payload of the polling system calls on x86 and ARM
(32 and 64-bit). The concerned system calls are select, pselect6, poll, ppoll,
epoll_ctl, epoll_wait, epoll_pwait.

Changes from v5:
 - Use GFP_ATOMIC | GFP_NOWAIT
 - Removed a lot of code duplication by factoring all in macros (422 lines less
   compared to previous PR, that is 361 backslashes added !)
 - Bugfix from v5 review

Changes from v4:
 - Use GFP_ATOMIC memory for dynamic allocation (because we cannot sleep in TP)
 - Limit the allocated memory to one page
 - Set an overflow flag if we cannot allocate enough memory
 - Fix endianness problem for select
 - Bugfix from v4 review

Changes from v3:
 - Use dynamic allocation for select
 - Bugfix from v3 review
 - Cleanup epoll_wait error handling

Changes from v2:
 - Make sure all user-controlled data is handled safely in the kernel
 - Allocate memory instead of using the stack for arbitrarily large data
 - Only extract the standard event flags and output the raw event value as hex


Julien Desfossez (5):
  Add ctf_integer_bitfield_type
  Extract the FD sets in select and pselect6
  Extract the FDs and flags from poll and ppoll
  Extract the payload for epoll_ctl
  Extract the payload of epoll_wait/epoll_pwait

 .../syscalls/headers/syscalls_pointers_override.h  | 821 +++++++++++++++++++++
 probes/lttng-events-write.h                        |   8 +
 2 files changed, 829 insertions(+)

-- 
1.9.1



             reply	other threads:[~2016-04-29 22:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-29 22:53 Julien Desfossez [this message]
2016-04-29 22:53 ` [lttng-dev] [PATCH lttng-modules v6 1/5] Add ctf_integer_bitfield_type Julien Desfossez
2016-04-29 22:53 ` [lttng-dev] [PATCH lttng-modules v6 2/5] Extract the FD sets in select and pselect6 Julien Desfossez
2016-04-29 22:53 ` [lttng-dev] [PATCH lttng-modules v6 3/5] Extract the FDs and flags from poll and ppoll Julien Desfossez
2016-04-30 14:14   ` Mathieu Desnoyers
2016-04-29 22:53 ` [lttng-dev] [PATCH lttng-modules v6 4/5] Extract the payload for epoll_ctl Julien Desfossez
2016-04-30 14:17   ` Mathieu Desnoyers
2016-04-30 14:19     ` Mathieu Desnoyers
2016-04-30 14:54       ` Julien Desfossez
2016-04-29 22:53 ` [lttng-dev] [PATCH lttng-modules v6 5/5] Extract the payload of epoll_wait/epoll_pwait Julien Desfossez
2016-04-30 14:22   ` Mathieu Desnoyers

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=1461970404-27468-1-git-send-email-jdesfossez@efficios.com \
    --to=jdesfossez@efficios.com \
    /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