• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/kernel/

Lines Matching defs:hwc

1541 	struct hw_perf_event *hwc = &event->hw;
1547 delta = (s64)(period - hwc->sample_period);
1550 sample_period = hwc->sample_period + delta;
1555 hwc->sample_period = sample_period;
1557 if (local64_read(&hwc->period_left) > 8*sample_period) {
1560 local64_set(&hwc->period_left, 0);
1569 struct hw_perf_event *hwc;
1581 hwc = &event->hw;
1583 interrupts = hwc->interrupts;
1584 hwc->interrupts = 0;
1602 delta = now - hwc->freq_count_stamp;
1603 hwc->freq_count_stamp = now;
3963 struct hw_perf_event *hwc = &event->hw;
3969 hwc->interrupts++;
3971 if (hwc->interrupts != MAX_INTERRUPTS) {
3972 hwc->interrupts++;
3973 if (HZ * hwc->interrupts >
3975 hwc->interrupts = MAX_INTERRUPTS;
3991 s64 delta = now - hwc->freq_time_stamp;
3993 hwc->freq_time_stamp = now;
3996 perf_adjust_period(event, delta, hwc->last_period);
4040 struct hw_perf_event *hwc = &event->hw;
4041 u64 period = hwc->last_period;
4045 hwc->last_period = hwc->sample_period;
4048 old = val = local64_read(&hwc->period_left);
4055 if (local64_cmpxchg(&hwc->period_left, old, val) != old)
4065 struct hw_perf_event *hwc = &event->hw;
4072 if (hwc->interrupts == MAX_INTERRUPTS)
4080 * hwc->interrupts == MAX_INTERRUPTS.
4092 struct hw_perf_event *hwc = &event->hw;
4099 if (!hwc->sample_period)
4102 if (nr == 1 && hwc->sample_period == 1 && !event->attr.freq)
4105 if (local64_add_negative(nr, &hwc->period_left))
4275 struct hw_perf_event *hwc = &event->hw;
4281 if (hwc->sample_period) {
4282 hwc->last_period = hwc->sample_period;
4315 .unthrottle = perf_swevent_void, /* hwc->interrupts already reset */
4351 struct hw_perf_event *hwc = &event->hw;
4353 hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
4354 hwc->hrtimer.function = perf_swevent_hrtimer;
4355 if (hwc->sample_period) {
4358 if (hwc->remaining) {
4359 if (hwc->remaining < 0)
4362 period = hwc->remaining;
4363 hwc->remaining = 0;
4365 period = max_t(u64, 10000, hwc->sample_period);
4367 __hrtimer_start_range_ns(&hwc->hrtimer,
4375 struct hw_perf_event *hwc = &event->hw;
4377 if (hwc->sample_period) {
4378 ktime_t remaining = hrtimer_get_remaining(&hwc->hrtimer);
4379 hwc->remaining = ktime_to_ns(remaining);
4381 hrtimer_cancel(&hwc->hrtimer);
4402 struct hw_perf_event *hwc = &event->hw;
4405 local64_set(&hwc->prev_count, cpu_clock(cpu));
4444 struct hw_perf_event *hwc = &event->hw;
4449 local64_set(&hwc->prev_count, now);
4838 struct hw_perf_event *hwc;
4886 hwc = &event->hw;
4887 hwc->sample_period = attr->sample_period;
4889 hwc->sample_period = 1;
4890 hwc->last_period = hwc->sample_period;
4892 local64_set(&hwc->period_left, hwc->sample_period);
5321 struct hw_perf_event *hwc = &child_event->hw;
5323 hwc->sample_period = sample_period;
5324 hwc->last_period = sample_period;
5326 local64_set(&hwc->period_left, sample_period);