Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libpmc/pmu-events/jevents.c
Show First 20 Lines • Show All 178 Lines • ▼ Show 20 Lines | static struct field { | ||||
{ "UMask", "umask=" }, | { "UMask", "umask=" }, | ||||
{ "CounterMask", "cmask=" }, | { "CounterMask", "cmask=" }, | ||||
{ "Invert", "inv=" }, | { "Invert", "inv=" }, | ||||
{ "AnyThread", "any=" }, | { "AnyThread", "any=" }, | ||||
{ "EdgeDetect", "edge=" }, | { "EdgeDetect", "edge=" }, | ||||
{ "SampleAfterValue", "period=" }, | { "SampleAfterValue", "period=" }, | ||||
{ "FCMask", "fc_mask=" }, | { "FCMask", "fc_mask=" }, | ||||
{ "PortMask", "ch_mask=" }, | { "PortMask", "ch_mask=" }, | ||||
{ "L3ThreadMask", "l3_thread_mask=" }, | |||||
{ "L3SliceMask", "l3_slice_mask=" }, | |||||
{ NULL, NULL } | { NULL, NULL } | ||||
}; | }; | ||||
static void cut_comma(char *map, jsmntok_t *newval) | static void cut_comma(char *map, jsmntok_t *newval) | ||||
{ | { | ||||
int i; | int i; | ||||
/* Cut off everything after comma */ | /* Cut off everything after comma */ | ||||
▲ Show 20 Lines • Show All 975 Lines • Show Last 20 Lines |