Print this page
NEX-8148 Alerts should be sent if cores are created on a system
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>
| Split |
Close |
| Expand all |
| Collapse all |
--- old/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/swde_main.c
+++ new/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/swde_main.c
1 1 /*
2 2 * CDDL HEADER START
3 3 *
4 4 * The contents of this file are subject to the terms of the
5 5 * Common Development and Distribution License (the "License").
6 6 * You may not use this file except in compliance with the License.
7 7 *
8 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 * or http://www.opensolaris.org/os/licensing.
10 10 * See the License for the specific language governing permissions
11 11 * and limitations under the License.
12 12 *
13 13 * When distributing Covered Code, include this CDDL HEADER in each
|
↓ open down ↓ |
13 lines elided |
↑ open up ↑ |
14 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 * If applicable, add the following below this CDDL HEADER, with the
16 16 * fields enclosed by brackets "[]" replaced with your own identifying
17 17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 18 *
19 19 * CDDL HEADER END
20 20 */
21 21
22 22 /*
23 23 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
24 + * Copyright 2017 Nexenta Systems, Inc.
24 25 */
25 26
26 27 #include "../common/sw_impl.h"
27 28
28 29 static const fmd_prop_t swde_props[] = {
29 30 { "enable", FMD_TYPE_BOOL, "true" },
31 + { "core_enable", FMD_TYPE_BOOL, "true" },
32 + { "core_stacks_enable", FMD_TYPE_BOOL, "true" },
30 33 { NULL, 0, NULL }
31 34 };
32 35
33 36 static const fmd_hdl_ops_t swde_ops = {
34 37 sw_recv, /* fmdo_recv - provided by common code */
35 38 sw_timeout, /* fmdo_timeout - provided by common code */
36 39 swde_close, /* fmdo_close */
37 40 NULL, /* fmdo_stats */
38 41 NULL, /* fmdo_gc */
39 42 NULL, /* fmdo_send */
40 43 NULL /* fmdo_topo */
41 44 };
|
↓ open down ↓ |
2 lines elided |
↑ open up ↑ |
42 45
43 46 const fmd_hdl_info_t swde_info = {
44 47 "Software Diagnosis engine", "0.1", &swde_ops, swde_props
45 48 };
46 49
47 50 /*
48 51 * Subsidiary diagnosis "modules" that we host.
49 52 */
50 53 static const struct sw_subinfo *subde[SW_SUB_MAX] = {
51 54 &smf_diag_info,
52 - &panic_diag_info
55 + &panic_diag_info,
56 + &core_diag_info
53 57 };
54 58
55 59 void
56 60 _fmd_init(fmd_hdl_t *hdl)
57 61 {
58 62 if (sw_fmd_init(hdl, &swde_info, &subde))
59 63 swde_case_init(hdl);
60 64 }
61 65
62 66 void
63 67 _fmd_fini(fmd_hdl_t *hdl)
64 68 {
65 69 swde_case_fini(hdl);
66 70 sw_fmd_fini(hdl);
67 71 }
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX