Re: [tip:perf/core] x86/nmi: Push duration printk() to irq context

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/11/2014 07:01 AM, Peter Zijlstra wrote:
> -	irq_work_queue(&perf_duration_work);
> +	if (!irq_work_queue(&perf_duration_work)) {
> +		early_printk("perf interrupt took too long (%lld > %lld), lowering "
> +			     "kernel.perf_event_max_sample_rate to %d\n",
> +			     avg_local_sample_len, allowed_ns >> 1,
> +			     sysctl_perf_event_sample_rate);
> +	}
>  }

That's a cool trick.  Works for me.
--
To unsubscribe from this list: send the line "unsubscribe linux-tip-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Stable Commits]     [Linux Stable Kernel]     [Linux Kernel]     [Linux USB Devel]     [Linux Video &Media]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux