Home
last modified time | relevance | path

Searched refs:fmds_name (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_ustat.c155 uint_t h = fmd_strhash(sp->fmds_name) % usp->us_hashlen; in fmd_ustat_delete_locked()
159 if (strcmp(sp->fmds_name, ep->use_stat->fmds_name) != 0) in fmd_ustat_delete_locked()
206 char *p, *q = sp->fmds_name + sizeof (sp->fmds_name); in fmd_ustat_insert()
215 for (p = sp->fmds_name; p < q; p++) { in fmd_ustat_insert()
223 if (p == q || fmd_strbadid(sp->fmds_name, checkid) != NULL) { in fmd_ustat_insert()
225 "statistic naming rules\n", sp->fmds_name); in fmd_ustat_insert()
232 "is not valid\n", sp->fmds_name, sp->fmds_type); in fmd_ustat_insert()
240 h = fmd_strhash(sp->fmds_name) % usp->us_hashlen; in fmd_ustat_insert()
243 if (strcmp(sp->fmds_name, ep->use_stat->fmds_name) == 0) in fmd_ustat_insert()
249 "as a statistic name\n", sp->fmds_name); in fmd_ustat_insert()
H A Dfmd_mdb.c557 s.fmds_name, s.fmds_value.bool ? "true" : "false"); in fmd_stat()
561 s.fmds_name, s.fmds_value.i32); in fmd_stat()
565 s.fmds_name, s.fmds_value.i32); in fmd_stat()
569 s.fmds_name, s.fmds_value.i64); in fmd_stat()
573 s.fmds_name, s.fmds_value.ui64); in fmd_stat()
582 s.fmds_name, buf); in fmd_stat()
586 s.fmds_name, s.fmds_value.ui64); in fmd_stat()
590 s.fmds_name, s.fmds_value.ui64); in fmd_stat()
594 s.fmds_type, s.fmds_name); in fmd_stat()
H A Dfmd_xprt.c810 (void) snprintf(statv[i].fmds_name, in fmd_xprt_create()
811 sizeof (statv[i].fmds_name), "fmd.xprt.%u.%s", xip->xi_id, in fmd_xprt_create()
812 ((fmd_stat_t *)&_fmd_xprt_stat_tmpl + i)->fmds_name); in fmd_xprt_create()
991 (void) snprintf(sp[i].fmds_name, in fmd_xprt_destroy()
992 sizeof (sp[i].fmds_name), "fmd.xprt.%u.%s", xip->xi_id, in fmd_xprt_destroy()
993 ((fmd_stat_t *)&_fmd_xprt_stat_tmpl + i)->fmds_name); in fmd_xprt_destroy()
H A Dfmd_api.h90 char fmds_name[32]; /* statistic name */ member
H A Dfmd.c546 (void) snprintf(sp->fmds_name, sizeof (sp->fmds_name), "err.%s", in fmd_create()
H A Dfmd_rpc_adm.c1060 rv &= xdr_opaque(xp, sp->fmds_name, sizeof (sp->fmds_name)); in xdr_fmd_stat()
H A Dfmd_api.c1024 "failed to publish stat '%s'", ep->fmds_name); in fmd_stat_create()
1048 "stat '%s' is not a string\n", sp->fmds_name); in fmd_stat_setstr()
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dstats.c74 (void) snprintf(ret->fmd_stats.fmds_name, in stats_new()
75 sizeof (ret->fmd_stats.fmds_name), in stats_new()
78 (void) strlcpy(ret->fmd_stats.fmds_name, name, in stats_new()
79 sizeof (ret->fmd_stats.fmds_name)); in stats_new()
/illumos-gate/usr/src/cmd/fm/fmstat/common/
H A Dfmstat.c279 const char *p = strrchr(nsp->fmds_name, '.'); in modstat_compute()
288 if (p == NULL || strcmp(p + 1, tsp->fmds_name) != 0 || in modstat_compute()
289 strncmp(nsp->fmds_name, "fmd.", 4) != 0) in modstat_compute()
294 nsp->fmds_name, tsp->fmds_type, in modstat_compute()
549 if (aflag == 0 && strncmp(sp->fmds_name, "fmd.", 4) == 0) in stat_mod()
574 (void) printf("%20s ", sp->fmds_name); in stat_mod()
/illumos-gate/usr/src/lib/fm/libfmd_adm/common/
H A Dfmd_adm.c195 return (strcmp(((fmd_stat_t *)lp)->fmds_name, in fmd_adm_stats_cmp()
196 ((fmd_stat_t *)rp)->fmds_name)); in fmd_adm_stats_cmp()
1096 rv &= xdr_opaque(xp, sp->fmds_name, sizeof (sp->fmds_name)); in xdr_fmd_stat()