Changeset View
Changeset View
Standalone View
Standalone View
head/cddl/contrib/opensolaris/cmd/lockstat/lockstat.c
Show First 20 Lines • Show All 151 Lines • ▼ Show 20 Lines | static ls_event_info_t g_event_info[LS_MAX_EVENTS] = { | ||||
{ 'C', "Lock", "R/W writer blocked by writer", "nsec", | { 'C', "Lock", "R/W writer blocked by writer", "nsec", | ||||
"lockstat:::rw-block", "arg2 == 0 && arg3 == 1" }, | "lockstat:::rw-block", "arg2 == 0 && arg3 == 1" }, | ||||
{ 'C', "Lock", "R/W writer blocked by readers", "nsec", | { 'C', "Lock", "R/W writer blocked by readers", "nsec", | ||||
"lockstat:::rw-block", "arg2 == 0 && arg3 == 0 && arg4" }, | "lockstat:::rw-block", "arg2 == 0 && arg3 == 0 && arg4" }, | ||||
{ 'C', "Lock", "R/W reader blocked by writer", "nsec", | { 'C', "Lock", "R/W reader blocked by writer", "nsec", | ||||
"lockstat:::rw-block", "arg2 != 0 && arg3 == 1" }, | "lockstat:::rw-block", "arg2 != 0 && arg3 == 1" }, | ||||
{ 'C', "Lock", "R/W reader blocked by write wanted", "nsec", | { 'C', "Lock", "R/W reader blocked by write wanted", "nsec", | ||||
"lockstat:::rw-block", "arg2 != 0 && arg3 == 0 && arg4" }, | "lockstat:::rw-block", "arg2 != 0 && arg3 == 0 && arg4" }, | ||||
{ 'C', "Lock", "Unknown event (type 8)", "units" }, | { 'C', "Lock", "R/W writer spin on writer", "nsec", | ||||
{ 'C', "Lock", "Unknown event (type 9)", "units" }, | "lockstat:::rw-spin", "arg2 == 0 && arg3 == 1" }, | ||||
{ 'C', "Lock", "Unknown event (type 10)", "units" }, | { 'C', "Lock", "R/W writer spin on readers", "nsec", | ||||
{ 'C', "Lock", "Unknown event (type 11)", "units" }, | "lockstat:::rw-spin", "arg2 == 0 && arg3 == 0 && arg4" }, | ||||
{ 'C', "Lock", "Unknown event (type 12)", "units" }, | { 'C', "Lock", "R/W reader spin on writer", "nsec", | ||||
{ 'C', "Lock", "Unknown event (type 13)", "units" }, | "lockstat:::rw-spin", "arg2 != 0 && arg3 == 1" }, | ||||
{ 'C', "Lock", "Unknown event (type 14)", "units" }, | { 'C', "Lock", "R/W reader spin on write wanted", "nsec", | ||||
{ 'C', "Lock", "Unknown event (type 15)", "units" }, | "lockstat:::rw-spin", "arg2 != 0 && arg3 == 0 && arg4" }, | ||||
{ 'C', "Lock", "SX exclusive block", "nsec", | |||||
"lockstat:::sx-block", "arg2 == 0" }, | |||||
{ 'C', "Lock", "SX shared block", "nsec", | |||||
"lockstat:::sx-block", "arg2 != 0" }, | |||||
{ 'C', "Lock", "SX exclusive spin", "nsec", | |||||
"lockstat:::sx-spin", "arg2 == 0" }, | |||||
{ 'C', "Lock", "SX shared spin", "nsec", | |||||
"lockstat:::sx-spin", "arg2 != 0" }, | |||||
{ 'C', "Lock", "Unknown event (type 16)", "units" }, | { 'C', "Lock", "Unknown event (type 16)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 17)", "units" }, | { 'C', "Lock", "Unknown event (type 17)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 18)", "units" }, | { 'C', "Lock", "Unknown event (type 18)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 19)", "units" }, | { 'C', "Lock", "Unknown event (type 19)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 20)", "units" }, | { 'C', "Lock", "Unknown event (type 20)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 21)", "units" }, | { 'C', "Lock", "Unknown event (type 21)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 22)", "units" }, | { 'C', "Lock", "Unknown event (type 22)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 23)", "units" }, | { 'C', "Lock", "Unknown event (type 23)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 24)", "units" }, | { 'C', "Lock", "Unknown event (type 24)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 25)", "units" }, | { 'C', "Lock", "Unknown event (type 25)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 26)", "units" }, | { 'C', "Lock", "Unknown event (type 26)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 27)", "units" }, | { 'C', "Lock", "Unknown event (type 27)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 28)", "units" }, | { 'C', "Lock", "Unknown event (type 28)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 29)", "units" }, | { 'C', "Lock", "Unknown event (type 29)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 30)", "units" }, | { 'C', "Lock", "Unknown event (type 30)", "units" }, | ||||
{ 'C', "Lock", "Unknown event (type 31)", "units" }, | { 'C', "Lock", "Unknown event (type 31)", "units" }, | ||||
{ 'H', "Lock", "Adaptive mutex hold", "nsec", | { 'H', "Lock", "Adaptive mutex hold", "nsec", | ||||
"lockstat:::adaptive-release", NULL, | "lockstat:::adaptive-release", NULL, | ||||
"lockstat:::adaptive-acquire" }, | "lockstat:::adaptive-acquire" }, | ||||
{ 'H', "Lock", "Spin lock hold", "nsec", | { 'H', "Lock", "Spin lock hold", "nsec", | ||||
"lockstat:::spin-release", NULL, | "lockstat:::spin-release", NULL, | ||||
"lockstat:::spin-acquire" }, | "lockstat:::spin-acquire" }, | ||||
{ 'H', "Lock", "R/W writer hold", "nsec", | { 'H', "Lock", "R/W writer hold", "nsec", | ||||
"lockstat:::rw-release", "arg1 == 0", | "lockstat::rw_wunlock:rw-release", NULL, | ||||
"lockstat:::rw-acquire" }, | "lockstat::rw_wlock:rw-acquire" }, | ||||
{ 'H', "Lock", "R/W reader hold", "nsec", | { 'H', "Lock", "R/W reader hold", "nsec", | ||||
"lockstat:::rw-release", "arg1 != 0", | "lockstat::rw_runlock:rw-release", NULL, | ||||
"lockstat:::rw-acquire" }, | "lockstat::rw_rlock:rw-acquire" }, | ||||
{ 'H', "Lock", "Unknown event (type 36)", "units" }, | { 'H', "Lock", "SX shared hold", "nsec", | ||||
{ 'H', "Lock", "Unknown event (type 37)", "units" }, | "lockstat::sx_sunlock:sx-release", NULL, | ||||
"lockstat::sx_slock:sx-acquire" }, | |||||
{ 'H', "Lock", "SX exclusive hold", "nsec", | |||||
"lockstat::sx_xunlock:sx-release", NULL, | |||||
"lockstat::sx_xlock:sx-acquire" }, | |||||
{ 'H', "Lock", "Unknown event (type 38)", "units" }, | { 'H', "Lock", "Unknown event (type 38)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 39)", "units" }, | { 'H', "Lock", "Unknown event (type 39)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 40)", "units" }, | { 'H', "Lock", "Unknown event (type 40)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 41)", "units" }, | { 'H', "Lock", "Unknown event (type 41)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 42)", "units" }, | { 'H', "Lock", "Unknown event (type 42)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 43)", "units" }, | { 'H', "Lock", "Unknown event (type 43)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 44)", "units" }, | { 'H', "Lock", "Unknown event (type 44)", "units" }, | ||||
{ 'H', "Lock", "Unknown event (type 45)", "units" }, | { 'H', "Lock", "Unknown event (type 45)", "units" }, | ||||
▲ Show 20 Lines • Show All 1,716 Lines • Show Last 20 Lines |