Suggested extensions to python-inet_diag library
by James Hulka
In looking for faster way to retrieve information about open sockets on
a system I stumbled across python-inet_diag.
The library is very useful however it was missing the query / filter
code found in socketstat (Alexey Kuznetsov) which it seems to be based on.
I would like to propose the following patches to implement source and
destination IP and port filters for the inet_diag.create function.
Best Regards,
James Hulka
socketstat_filter.patch :
inet_diag.c: added filter building code from socketstat (Alexey
Kuznetsov, <kuznet(a)ms2.inr.ac.ru>)
added filter options to create function
added create function documentation
diag_filter.h: new header file
added various filter condition constants
added diag_filter structure
process_info.patch :
inet_diag.c: added process info parsing from socketstat (Alexey
Kuznetsov, <kuznet(a)ms2.inr.ac.ru>)
req_v2.patch :
inet_diag.c: using req_v2 and specifying protocol type in header
retreiving full process path
return proc as struct
leak_fixes.patch :
inet_diag.c: cleanup memory leaks and reformat
memory cleanup user_ent_hash
inet_diag_copy.h: unused removed
listening_states.patch :
inet_diag.c: added listening states constant
added process, pid and fd getter functions
cleanup memory leaks and reformat
memory cleanup user_ent_hash
8 years, 7 months
[RFC 0/2] CLI: start a process from tuna
by Daniel Bristot de Oliveira
This patch set adds the ability to start a new process with its affinity and
sched parameters defined on the tuna command line.
To do so, two new parameters were added to tuna's command line: one Modifier to
set the sched tunables (-T, --sched_tunable=), and an Action to set and run
a command line (-r, --run=).
The option -r will fork a new process, set the sched tunables and affinity, and
execute the new application's code. If arguments are passed, the entire
command line must be provided inside "quotes"
Tuna will wait for the new process to return, and then continue its execution.
That means that it is possible to execute many Actions after the creation of
the new process, including the start of many process in a single command line.
Daniel Bristot de Oliveira (2):
[RFC] CLI: start an application from tuna
[RFC] docs: uptade the man page with options -T and -r
docs/tuna.8 | 6 ++++++
tuna-cmd.py | 17 +++++++++++++++--
tuna/tuna.py | 59 ++++++++++++++++++++++++++++++++++++++++++++++-------------
3 files changed, 67 insertions(+), 15 deletions(-)
--
1.9.3
8 years, 10 months
[RFC v2 0/2] CLI: start a process from tuna
by Daniel Bristot de Oliveira
This patch set adds the ability to start a new process with its affinity
and sched parameters defined on the tuna command line.
To do so, the new parameter -r was added to tuna's command line. This
option will fork a new process, set the sched tunables and affinity,
and execute the new application's code. If arguments are passed, the
entire command line must be provided inside "quotes".
Tuna will wait for the new process to return, and then continue its
execution. That means that it is possible to execute many Actions after
the creation of the new process, including the start of many process in
a single command line.
v1 -> v2
- The option -T was removed, and -p was modified to act as a Modifier
if no THREAD-LIST is set.
Suggested by Arnaldo Carvalho de Melo
- The option -r saves the command line in the THREAD-LIST.
Suggested by Arnaldo Carvalho de Melo
Daniel Bristot de Oliveira (2):
CLI: start a process from tuna
docs: uptade tuna.8 man page with option -r
docs/tuna.8 | 7 +++--
tuna-cmd.py | 98 ++++++++++++++++++++++++++++++++++++++++++++----------------
tuna/tuna.py | 59 ++++++++++++++++++++++++++++--------
3 files changed, 124 insertions(+), 40 deletions(-)
--
1.9.3
8 years, 10 months