2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-28 04:47:49 +00:00

12 Commits

Author SHA1 Message Date
Bhanuprakash Bodireddy
0fee518560 process: Extend get_process_info() for additional fields.
This commit enables the fields relating to process name and the core
number the process was last scheduled. The fields will be used by keepalive
monitoring framework in future commits.

This commit also fixes the following "sparse" warning:

  lib/process.c:439:16: error: use of assignment suppression and length
  modifier together in gnu_scanf format [-Werror=format=].

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
2017-11-28 15:55:15 -08:00
Bhanuprakash Bodireddy
ff1d2c1626 process: Consolidate process related APIs.
As part of retrieving system statistics, process status APIs along with
helper functions were implemented. Some of them are very generic and can
be reused by other subsystems.

Move the APIs in system-stats.c to process.c and util.c and make them
available. This patch doesn't change any functionality.

Signed-off-by: Bhanuprakash Bodireddy <bhanuprakash.bodireddy@intel.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
2017-07-13 10:44:22 -07:00
Ben Pfaff
ff412c8c09 process: Add thread safety comments.
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-06-10 13:48:12 -07:00
Ben Pfaff
57d90319a6 process: Make signal handling thread-safe.
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-06-10 13:48:12 -07:00
Ben Pfaff
e1208bc494 process: Remove unused features from process_start().
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
2013-06-10 13:48:11 -07:00
Ben Pfaff
21f0192507 process: Remove process_run(), process_run_capture(), and related code.
They are unused.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ansis Atteka <aatteka@nicira.com>
2013-06-10 13:48:08 -07:00
Ben Pfaff
2db15dc5eb process: Fix indentation in header.
Signed-off-by: Ben Pfaff <blp@nicira.com>
2013-05-08 20:47:02 -07:00
Raju Subramanian
e0edde6fee Global replace of Nicira Networks.
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc.

Feature #10593
Signed-off-by: Raju Subramanian <rsubramanian@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-02 17:08:02 -07:00
Ben Pfaff
691ac3d8c5 process: Let process_run_capture() caller set maximum capture size.
An upcoming patch needs a larger value.
2011-06-07 17:05:42 -07:00
Ben Pfaff
b5dae6846a process: New function process_run_capture().
In an upcoming commit, ovs-brcompatd will need to create a subprocess and
capture both its stdout and stderr separately, which one cannot do with
simple interfaces such as popen().  This function provides that ability.
2009-07-16 09:17:06 -07:00
Ben Pfaff
a14bc59fb8 Update primary code license to Apache 2.0. 2009-06-15 15:11:30 -07:00
Ben Pfaff
064af42167 Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45. 2009-07-08 13:19:16 -07:00