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
634 /* Increment refcount for counter sets */ in cpumf_pmu_start()
640 /* Create perf event sample with the counter sets as raw data. The sample
802 unsigned int sets; /* Counter set bit mask */ member
843 * The cpu_cf_events::dev_state is used to denote counter sets in use by this
845 * value is zero and no additional counter sets will be included.
857 * counters sets during scheduling.
863 * When /dev/hwctr interface is also used at the same time, the counter sets
870 /* Stop all counter sets via ioctl interface */
879 if ((p->sets & cpumf_ctr_ctl[rc])) { in cfset_ioctl_off()
887 /* Keep perf_event_open counter sets */ in cfset_ioctl_off()
898 /* Start counter sets on particular CPU */
906 ctr_set_enable(&cpuhw->dev_state, p->sets); in cfset_ioctl_on()
907 ctr_set_start(&cpuhw->dev_state, p->sets); in cfset_ioctl_on()
909 if ((p->sets & cpumf_ctr_ctl[rc])) in cfset_ioctl_on()
911 rc = lcctl(cpuhw->dev_state | cpuhw->state); /* Start counter sets */ in cfset_ioctl_on()
929 rc = lcctl(cpuhw->state); /* Keep perf_event_open counter sets */ in cfset_release_cpu()
943 .sets = req->ctrset, in cfset_all_stop()
989 .sets = req->ctrset, in cfset_all_start()
1011 * To find out the size of the counter sets, any one CPU will do. They
1012 * all have the same counter sets.
1014 static size_t cfset_needspace(unsigned int sets) in cfset_needspace() argument
1021 if (!(sets & cpumf_ctr_ctl[i])) in cfset_needspace()
1048 rc |= put_user(cpuhw->sets, &ctrset_cpudata->no_sets); in cfset_all_copy()
1081 /* Read all counter sets. */
1091 cpuhw->sets = 0; in cfset_cpu_read()
1094 /* Scan the counter sets */ in cfset_cpu_read()
1099 if (!(p->sets & cpumf_ctr_ctl[set])) in cfset_cpu_read()
1106 cpuhw->sets += 1; in cfset_cpu_read()
1109 debug_sprintf_event(cf_dbg, 4, "%s sets %d used %zd\n", __func__, in cfset_cpu_read()
1110 cpuhw->sets, cpuhw->used); in cfset_cpu_read()
1122 p.sets = req->ctrset; in cfset_all_read()
1218 * S390_HWCTR_START: Start the specified counter sets on a CPU list. The
1225 * S390_HWCTR_STOP: Stops the counter sets on the CPU list given with the
1279 p.sets = rp->ctrset; in cfset_online_cpu()
1299 p.sets = rp->ctrset; in cfset_offline_cpu()
1329 /* Setup the event. Test for authorized counter sets and only include counter
1330 * sets which are authorized at the time of the setup. Including unauthorized
1331 * counter sets result in specification exception (and panic).
1345 /* Add all authorized counter sets to config_base. The in cfdiag_event_init2()
1355 /* No authorized counter sets, nothing to count/sample */ in cfdiag_event_init2()
1396 * to collect the complete counter sets for a scheduled process. Target
1397 * are complete counter sets attached as raw data to the artificial event.
1398 * This results in complete counter sets available when a process is
1453 /* Calculate memory needed to store all counter sets together with header and