From 4d4cc177b31c080f01f090fbfc6220047eebb24c Mon Sep 17 00:00:00 2001 From: Nichamon Naksinehaboon Date: Tue, 5 Dec 2023 09:37:28 -0600 Subject: [PATCH] Remove the unused `stat` field in strgp --- ldms/src/ldmsd/ldmsd.h | 1 - ldms/src/ldmsd/ldmsd_updtr.c | 1 - 2 files changed, 2 deletions(-) diff --git a/ldms/src/ldmsd/ldmsd.h b/ldms/src/ldmsd/ldmsd.h index fc3adfdf8..39fe9bcc8 100644 --- a/ldms/src/ldmsd/ldmsd.h +++ b/ldms/src/ldmsd/ldmsd.h @@ -489,7 +489,6 @@ struct ldmsd_strgp { regex_t schema_regex; char *regex_s; - struct ldmsd_stat stat; int prdset_cnt; /* Number of producer sets strgp stores */ }; diff --git a/ldms/src/ldmsd/ldmsd_updtr.c b/ldms/src/ldmsd/ldmsd_updtr.c index 1da7f08cc..8b60a4cdb 100644 --- a/ldms/src/ldmsd/ldmsd_updtr.c +++ b/ldms/src/ldmsd/ldmsd_updtr.c @@ -261,7 +261,6 @@ static void updtr_update_cb(ldms_t t, ldms_set_t set, int status, void *arg) clock_gettime(CLOCK_REALTIME, &start); strgp->update_fn(strgp, prd_set); clock_gettime(CLOCK_REALTIME, &end); - ldmsd_stat_update(&strgp->stat, &start, &end); ldmsd_stat_update(&prd_set->store_stat, &start, &end); ldmsd_strgp_unlock(strgp); }