Lines Matching full:sets
30 /* Counter sets are stored as data stream in a page sized memory buffer and
40 * All counter sets are followed by a 64 byte trailer.
45 * - the time stamp the counter sets have been collected
49 * The counter sets are saved when the process is prepared to be executed on a
51 * The difference of both counter sets are calculated and stored in the event
126 * Note that the counter sets may not be enabled or active and the stcctm
169 /* Read out all counter sets and save them in the provided data buffer.
205 /* Scan the counter sets and calculate the difference of each counter
271 /* check required version for counter sets */ in validate_ctr_version()
330 /* Check authorization for cpu counter sets. in validate_ctr_auth()
344 * Enable and activate the CPU-counter sets according
367 * Disable and enable (inactive) the CPU-counter sets according
614 /* Increment refcount for counter sets */ in cpumf_pmu_start()
620 /* Create perf event sample with the counter sets as raw data. The sample
779 unsigned int sets; /* Counter set bit mask */ member
796 * The cpu_cf_events::dev_state is used to denote counter sets in use by this
798 * value is zero and no additional counter sets will be included.
810 * counters sets during scheduling.
816 * When /dev/hwctr interface is also used at the same time, the counter sets
823 /* Stop all counter sets via ioctl interface */
832 if ((p->sets & cpumf_ctr_ctl[rc])) in cfset_ioctl_off()
834 rc = lcctl(cpuhw->state); /* Keep perf_event_open counter sets */ in cfset_ioctl_off()
843 /* Start counter sets on particular CPU */
851 ctr_set_enable(&cpuhw->dev_state, p->sets); in cfset_ioctl_on()
852 ctr_set_start(&cpuhw->dev_state, p->sets); in cfset_ioctl_on()
854 if ((p->sets & cpumf_ctr_ctl[rc])) in cfset_ioctl_on()
856 rc = lcctl(cpuhw->dev_state | cpuhw->state); /* Start counter sets */ in cfset_ioctl_on()
873 rc = lcctl(cpuhw->state); /* Keep perf_event_open counter sets */ in cfset_release_cpu()
909 .sets = cfset_request.ctrset, in cfset_all_stop()
924 .sets = cfset_request.ctrset, in cfset_all_start()
946 * To find out the size of the counter sets, any one CPU will do. They
947 * all have the same counter sets.
949 static size_t cfset_needspace(unsigned int sets) in cfset_needspace() argument
956 if (!(sets & cpumf_ctr_ctl[i])) in cfset_needspace()
983 rc |= put_user(cpuhw->sets, &ctrset_cpudata->no_sets); in cfset_all_copy()
1016 /* Read all counter sets. */
1026 cpuhw->sets = 0; in cfset_cpu_read()
1029 /* Scan the counter sets */ in cfset_cpu_read()
1034 if (!(p->sets & cpumf_ctr_ctl[set])) in cfset_cpu_read()
1041 cpuhw->sets += 1; in cfset_cpu_read()
1044 debug_sprintf_event(cf_dbg, 4, "%s sets %d used %zd\n", __func__, in cfset_cpu_read()
1045 cpuhw->sets, cpuhw->used); in cfset_cpu_read()
1057 p.sets = cfset_request.ctrset; in cfset_all_read()
1128 debug_sprintf_event(cf_dbg, 4, "%s sets %#lx need %ld ret %d\n", in cfset_ioctl_start()
1135 * S390_HWCTR_START: Start the specified counter sets on a CPU list. The
1142 * S390_HWCTR_STOP: Stops the counter sets on the CPU list given with the
1191 p.sets = cfset_request.ctrset; in cfset_online_cpu()
1205 p.sets = cfset_request.ctrset; in cfset_offline_cpu()
1234 /* Setup the event. Test for authorized counter sets and only include counter
1235 * sets which are authorized at the time of the setup. Including unauthorized
1236 * counter sets result in specification exception (and panic).
1250 /* Add all authorized counter sets to config_base. The in cfdiag_event_init2()
1260 /* No authorized counter sets, nothing to count/sample */ in cfdiag_event_init2()
1301 * to collect the complete counter sets for a scheduled process. Target
1302 * are complete counter sets attached as raw data to the artificial event.
1303 * This results in complete counter sets available when a process is
1358 /* Calculate memory needed to store all counter sets together with header and