diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2024-08-11 14:31:07 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2024-08-11 14:31:07 -0700 |
commit | c4dbf10b5a8d8ed8bfe5a2259db4151d39a9ce00 (patch) | |
tree | ff725cb85cda0f1962af0f0ca68a097034b5f53b | |
parent | f1525f45ae60fb788ea1e10344814b7dcaa89c12 (diff) |
libvmon: s/sample_siblings(/sample_siblings_unipass(/
Clarify the naming here so it's more obvious this only applies to
the single-pass mode (!VMON_FLAG_2PASS && !VMON_FLAG_PROC_ARRAY).
-rw-r--r-- | src/libvmon/vmon.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libvmon/vmon.c b/src/libvmon/vmon.c index 9477531..fa7b62d 100644 --- a/src/libvmon/vmon.c +++ b/src/libvmon/vmon.c @@ -1358,7 +1358,7 @@ static int sample_threads(vmon_t *vmon, list_head_t *threads) /* internal single-pass sampling helper, recursively perform sampling and callbacks for all sibling processes in the provided siblings list */ -static int sample_siblings(vmon_t *vmon, list_head_t *siblings) +static int sample_siblings_unipass(vmon_t *vmon, list_head_t *siblings) { vmon_proc_t *proc, *_proc; @@ -1372,7 +1372,7 @@ static int sample_siblings(vmon_t *vmon, list_head_t *siblings) sample(vmon, proc); /* invoke samplers for this node */ sample_threads(vmon, &proc->threads); /* invoke samplers for this node's threads */ - sample_siblings(vmon, &proc->children); /* invoke samplers for this node's children, and their callbacks, by recursing into this function */ + sample_siblings_unipass(vmon, &proc->children); /* invoke samplers for this node's children, and their callbacks, by recursing into this function */ /* XXX TODO: error returns */ /* if this is the top-level processes list, and proc has found a parent through the above sampling, migrate it to the parent's children list */ @@ -1588,7 +1588,7 @@ int vmon_sample(vmon_t *vmon) /* recursive hierarchical depth-first processes tree sampling, at each node threads come before children, done in a single pass: * Pass 1. samplers; callbacks (for every node) */ - ret = sample_siblings(vmon, &vmon->processes); + ret = sample_siblings_unipass(vmon, &vmon->processes); } return ret; |