Searched refs:fmd (Results 1 - 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/cmd/fm/fmd/i386/
H A DMakefile29 include ../Makefile.fmd
/illumos-gate/usr/src/cmd/fm/fmd/sparc/
H A DMakefile29 include ../Makefile.fmd
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_topo.c29 * libtopo snapshot. Upon fmd initialization, a snapshot is taken and
42 #include <fmd.h>
53 ASSERT(MUTEX_HELD(&fmd.d_topo_lock));
56 fmd_list_delete(&fmd.d_topo_list, ftp);
71 (void) pthread_mutex_lock(&fmd.d_topo_lock);
73 fmd.d_stats->ds_topo_drgen.fmds_value.ui64 = fmd_fmri_get_drgen();
75 name = fmd.d_rootdir != NULL &&
76 *fmd.d_rootdir != '\0' ? fmd.d_rootdir : NULL;
96 fmd
[all...]
H A Dfmd.logadm.conf25 /var/fm/fmd/infolog -N -A 2y -S 50m -s 10m -M '/usr/sbin/fmadm -q rotate infolog && mv /var/fm/fmd/infolog.0- $nfile'
26 /var/fm/fmd/infolog_hival -N -A 2y -S 50m -s 10m -M '/usr/sbin/fmadm -q rotate infolog_hival && mv /var/fm/fmd/infolog_hival.0- $nfile'
H A Dfmd_subr.c46 #include <fmd.h>
57 * To implement a reasonable panic() equivalent for fmd, we atomically bump a
60 * not attempt to grab any locks so that it can be called from any fmd code.
78 if (atomic_add_32_nv(&fmd.d_panicrefs, 1) != 1) {
79 while (fmd.d_panictid != tid)
85 * Use fmd.d_pid != 0 as a cheap test to see if fmd.d_key is valid
88 if (fmd.d_pid != 0 && (tp = pthread_getspecific(fmd.d_key)) != NULL)
91 fmd
[all...]
H A Dfmd_thread.c32 #include <fmd.h>
44 tp->thr_trfunc = (fmd_tracebuf_f *)fmd.d_thr_trace;
48 (void) pthread_mutex_lock(&fmd.d_thr_lock);
49 fmd_list_append(&fmd.d_thr_list, tp);
50 (void) pthread_mutex_unlock(&fmd.d_thr_lock);
60 if (pthread_setspecific(fmd.d_key, tp) != 0)
84 tp->thr_trfunc = (fmd_tracebuf_f *)fmd.d_thr_trace;
91 (void) sigdelset(&nset, fmd.d_thr_sig); /* fmd_thr_signal() */
102 (void) pthread_mutex_lock(&fmd.d_thr_lock);
103 fmd_list_append(&fmd
[all...]
H A Dfmd_main.c46 #include <fmd.h>
48 fmd_t fmd; variable
90 * var/fm/fmd directory, named after the PID to aid in debugging,
94 "%s/var/fm/fmd/core.%s.%%p", fmd.d_rootdir, fmd.d_pname);
96 (void) core_set_process_path(path, strlen(path) + 1, fmd.d_pid);
121 * There are no calls to priocntl(2) in fmd or plugins.
196 fmd.d_pid = getpid();
222 if (fmd
[all...]
H A Dfmd_alloc.c39 #include <fmd.h>
50 lim = fmd.d_alloc_tries;
51 msecs = fmd.d_alloc_msecs;
60 fmd_modhash_tryapply(fmd.d_mod_hash, fmd_module_trygc);
61 fmd_scheme_hash_trygc(fmd.d_schemes);
H A Dfmd_dr.c69 #include <fmd.h>
126 fmd.d_clockops == &fmd_timeops_native) {
132 (void) pthread_mutex_lock(&fmd.d_stats_lock);
133 gen = fmd.d_stats->ds_dr_gen.fmds_value.ui64++;
134 (void) pthread_mutex_unlock(&fmd.d_stats_lock);
141 fmd_modhash_dispatch(fmd.d_mod_hash, e);
H A Dfmd_rpc.c45 #include <fmd.h>
173 (void) fmd_conf_setprop(fmd.d_conf, prop, buf);
192 (void) fmd_conf_getprop(fmd.d_conf, "rpc.sndsize", &sndsize);
193 (void) fmd_conf_getprop(fmd.d_conf, "rpc.rcvsize", &rcvsize);
199 (void) fmd_conf_getprop(fmd.d_conf, "rpc.adm.prog", &prog);
200 (void) fmd_conf_getprop(fmd.d_conf, "rpc.adm.path", &s);
215 if (fmd_thread_create(fmd.d_rmod, (fmd_thread_f *)svc_run, 0) == NULL)
226 (void) fmd_conf_getprop(fmd.d_conf, "rpc.adm.prog", &prog);
229 (void) fmd_conf_getprop(fmd.d_conf, "rpc.api.prog", &prog);
245 if (!fmd
[all...]
H A Dfmd_rpc_adm.c44 #include <fmd.h>
61 (void) pthread_mutex_lock(&fmd.d_mod_lock);
63 for (mp = fmd_list_next(&fmd.d_mod_list);
99 (void) pthread_mutex_unlock(&fmd.d_mod_lock);
119 if ((mp = fmd_modhash_lookup(fmd.d_mod_hash, name)) == NULL) {
151 if ((mp = fmd_modhash_lookup(fmd.d_mod_hash, name)) == NULL) {
203 * stats are present in fmd.d_stats (see definition in fmd.c).
205 (void) pthread_mutex_lock(&fmd.d_stats_lock);
206 bcopy(fmd
[all...]
H A Dfmd_fmri.c38 #include <fmd.h>
209 return (fmd.d_rootdir);
215 return (fmd.d_platform);
223 (void) pthread_mutex_lock(&fmd.d_stats_lock);
224 gen = fmd.d_stats->ds_dr_gen.fmds_value.ui64;
225 (void) pthread_mutex_unlock(&fmd.d_stats_lock);
263 return (fmd_scheme_hash_lookup(fmd.d_schemes, name));
286 fmd_scheme_hash_release(fmd.d_schemes, sp);
303 fmd_scheme_hash_release(fmd.d_schemes, sp);
320 fmd_scheme_hash_release(fmd
[all...]
H A Dfmd_protocol.c39 #include <fmd.h>
43 * of fmd is deployed. This function is called once and the result is cached.
52 if (nvlist_xalloc(&nvl, NV_UNIQUE_NAME, &fmd.d_nva) != 0)
57 if ((str = fmd_conf_getnzstr(fmd.d_conf, "product")) == NULL)
58 str = fmd_conf_getnzstr(fmd.d_conf, "platform");
63 if ((str = fmd_conf_getnzstr(fmd.d_conf, "product_sn")) != NULL)
66 if ((str = fmd_conf_getnzstr(fmd.d_conf, "chassis")) != NULL)
69 if ((str = fmd_conf_getnzstr(fmd.d_conf, "domain")) != NULL)
72 if ((str = fmd_conf_getnzstr(fmd.d_conf, "server")) != NULL)
83 * nvlist saved in fmd
[all...]
H A Dfmd_time.c36 #include <fmd.h>
41 if (fmd.d_clockops->fto_gettimeofday(tvp, NULL) != 0)
48 return (fmd.d_clockops->fto_gethrtime());
54 fmd.d_clockops->fto_addhrtime(delta);
60 fmd.d_clockops->fto_waithrtime(delta);
66 fmd.d_clockops->fto_waitcancel(tid);
80 const fmd_timeops_t *ftop = fmd.d_clockops;
256 fmd_timesim_t *fts = fmd.d_clockptr;
278 fmd_timesim_t *fts = fmd.d_clockptr;
291 fmd_timesim_t *fts = fmd
[all...]
H A Dfmd_case.c33 * or more problems with the case, at which point fmd publishes a list.suspect
45 * to the root module (fmd.d_rmod) and is deleted from the owner's mod_cases.
83 * from various locations inside of fmd, as described below:
145 #include <fmd.h>
164 chp->ch_hashlen = fmd.d_str_buckets;
262 fmd_case_hash_t *chp = fmd.d_cases;
289 (void) fmd_conf_getprop(fmd.d_conf, "nodiagcode", &s);
423 fmd_asru_hash_apply_by_case(fmd.d_asrus, cp, fmd_case_set_lst, &fcl);
432 (void) fmd_conf_getprop(fmd.d_conf, "repaircode", &code);
434 (void) fmd_conf_getprop(fmd
[all...]
H A Dfmd_xprt.c143 #include <fmd.h>
187 * Template for per-transport statistics installed by fmd on behalf of each
189 * each statistic, the name is prepended with "fmd.xprt.%u", where %u is the
221 uint_t hashlen = fmd.d_str_buckets;
240 fmd_dispq_delete(fmd.d_disp, eq, xcp->xc_class);
276 fmd_dispq_insert(fmd.d_disp, xch->xch_queue, class);
316 fmd_dispq_delete(fmd.d_disp, xch->xch_queue, class);
392 fmd_xprt_subscribe_modhash(xip, fmd.d_mod_hash);
476 (void) nvlist_xdup(nvl, &xip->xi_auth, &fmd.d_nva);
506 (void) nvlist_xdup(nvl, &xip->xi_auth, &fmd
[all...]
H A Dfmd_module.c51 #include <fmd.h>
54 * Template for per-module statistics installed by fmd on behalf of each active
61 { "fmd.dispatched", FMD_TYPE_UINT64, "total events dispatched to module" },
62 { "fmd.dequeued", FMD_TYPE_UINT64, "total events dequeued by module" },
63 { "fmd.prdequeued", FMD_TYPE_UINT64, "protocol events dequeued by module" },
64 { "fmd.dropped", FMD_TYPE_UINT64, "total events dropped on queue overflow" },
65 { "fmd.wcnt", FMD_TYPE_UINT32, "count of events waiting on queue" },
66 { "fmd.wtime", FMD_TYPE_TIME, "total wait time on queue" },
67 { "fmd.wlentime", FMD_TYPE_TIME, "total wait length * time product" },
68 { "fmd
[all...]
H A Dfmd_trace.c39 #include <fmd.h>
47 (void) fmd_conf_getprop(fmd.d_conf, "trace.frames", &tbp->tb_frames);
48 (void) fmd_conf_getprop(fmd.d_conf, "trace.recs", &tbp->tb_recs);
165 if (fmd.d_fmd_debug & FMD_DBG_TRACE)
/illumos-gate/usr/src/cmd/fm/
H A DMakefile27 fmd \
47 check: fmd
/illumos-gate/usr/src/cmd/fm/schemes/
H A DMakefile28 fmd \
H A DMakefile.com44 ROOTPROG = $(ROOT)/usr/lib/fm/fmd/schemes/$(PROG)
45 ROOTPROG64 = $(ROOT)/usr/lib/fm/fmd/schemes/$(MACH64)/$(PROG)
46 MAPFILE = ../../../fmd/common/fmd_fmri.map
/illumos-gate/usr/src/cmd/fm/scripts/
H A Dfmsim.ksh54 simchan=com.sun:fm:fmd$$
55 simroot=/tmp/fmd.$$
76 _fmd_init) cp $1 $2/usr/lib/fm/fmd/plugins; return ;;
77 fmd_fmri_nvl2str) cp $1 $2/usr/lib/fm/fmd/schemes; return ;;
104 die "fmd terminated from signal $sig (see $simroot)"
106 die "fmd terminated with status $1 (see $simroot)"
179 echo "\t-D start fmd(1M) using dtrace(1M) and specified D script"
183 echo "\t-o set fmd(1M) option to specified value during simulation"
185 echo "\t-t start fmd(1M) using truss(1) and specified arguments"
200 mkdir -p -m 0755 var/fm/fmd
[all...]
H A DMakefile37 ROOTLIBFMD = $(ROOT)/usr/lib/fm/fmd
/illumos-gate/usr/src/cmd/logadm/
H A Dlogadm.conf42 /var/fm/fmd/errlog -N -s 2m -M '/usr/sbin/fmadm -q rotate errlog && mv /var/fm/fmd/errlog.0- $nfile'
43 /var/fm/fmd/fltlog -N -A 6m -s 10m -M '/usr/sbin/fmadm -q rotate fltlog && mv /var/fm/fmd/fltlog.0- $nfile'
/illumos-gate/usr/src/test/zfs-tests/tests/functional/zvol/zvol_swap/
H A Dsetup.ksh38 # Restart fmd to lower the chances of swap -d failing with ENOMEM.
39 log_must svcadm restart svc:/system/fmd:default

Completed in 523 milliseconds

123