Skip to content

Commit

Permalink
Add version string in ldmsd for binary string dump check
Browse files Browse the repository at this point in the history
`ldmsd -V` shows all the version numbers that we need, but `ldms-test`
has a use case that needs to determine the version of the binary in the
environment that could not execute that binary. This patch will make
"LDMSD_VERSION #.#.#" presents in `ldmsd` and could be check with
`strings /opt/ovis/sbin/ldmsd | grep LDMSD_VERSION`.
  • Loading branch information
narategithub authored and tom95858 committed Nov 25, 2019
1 parent 9c45d73 commit fec73e1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ldms/src/ldmsd/ldmsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ pthread_mutex_t log_lock = PTHREAD_MUTEX_INITIALIZER;
size_t max_mem_size;
char *max_mem_sz_str;

/* NOTE: For determining version by dumping binary string */
char *_VERSION_STR_ = "LDMSD_VERSION " OVIS_LDMS_VERSION;

mode_t inband_cfg_mask = LDMSD_PERM_FAILOVER_ALLOWED;
/* LDMSD_PERM_FAILOVER_INTERNAL will be added in `failover_start`
* command.
Expand Down

0 comments on commit fec73e1

Please sign in to comment.