-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#2183: LDMS: add stream for phase data #2184
Draft
lifflander
wants to merge
11
commits into
develop
Choose a base branch
from
2183-create-ldma-stream-publish-for-phase-data
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
#2183: LDMS: add stream for phase data #2184
lifflander
wants to merge
11
commits into
develop
from
2183-create-ldma-stream-publish-for-phase-data
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pipelines resultsPR tests (gcc-12, ubuntu, mpich) Build for 1c98fba (2023-11-09 17:49:25 UTC)
|
JacobDomagala
force-pushed
the
2183-create-ldma-stream-publish-for-phase-data
branch
from
September 30, 2023 13:16
365191b
to
cacd48a
Compare
JacobDomagala
force-pushed
the
2183-create-ldma-stream-publish-for-phase-data
branch
2 times, most recently
from
October 3, 2023 13:02
8baa8fc
to
7b49e32
Compare
Code used for reading the data: #include <ldms/ldms.h>
#include <ldms/ldmsd_stream.h>
#include <ovis_util/util.h>
int stream_handler(ldmsd_stream_client_t c, void *ctxt,
ldmsd_stream_type_t stream_type,
const char *data, size_t data_len,
json_entity_t entity)
{
// Process the received data
printf("%.*s\n", (int)data_len, data);
return 0;
}
int main()
{
ldms_init(256);
ldms_t ldms = ldms_xprt_new_with_auth("sock", "none", NULL);
int rc = ldms_xprt_connect_by_name(ldms, "localhost", "10444", NULL, NULL);
if(!rc){
printf("Error code %d \n", rc);
}
ldmsd_stream_subscribe("LB_data", stream_handler, NULL);
while (1){
// Keep running to continue receiving data
}
ldms_xprt_put(ldms);
return 0;
} Config file:
Script to launch the LDMS deamon: #!/bin/bash
TOP=/ovis/LDMS_install
export LD_LIBRARY_PATH=$TOP/lib/:$TOP/lib:$LD_LIBRARY_PATH
export LDMSD_PLUGIN_LIBPATH=$TOP/lib/ovis-ldms
export ZAP_LIBPATH=$TOP/lib/ovis-ldms
export PATH=$TOP/sbin:$TOP/bin:$PATH
export PYTHONPATH=$TOP/lib/python2.7/site-packages
ldmsd -x sock:10444 -c /ldmsd.conf -l /tmp/demo_ldmsd_log -v DEBUG -r $(pwd)/ldmsd.pid
|
JacobDomagala
force-pushed
the
2183-create-ldma-stream-publish-for-phase-data
branch
5 times, most recently
from
October 10, 2023 16:18
caca0d1
to
1939ddb
Compare
lifflander
force-pushed
the
2183-create-ldma-stream-publish-for-phase-data
branch
from
November 9, 2023 17:49
1939ddb
to
1c98fba
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #2183