Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1679470

Re: [PATCH 19/21] x86/intel_rdt/mbm: Basic counting of MBM events (total and local)

From Thomas Gleixner <tglx@linutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH 19/21] x86/intel_rdt/mbm: Basic counting of MBM events (total and local)
Date 2017-07-02 15:50 +0200
Message-ID <tYNq9-2Fy-9@gated-at.bofh.it> (permalink)
References <tWHoR-5Yd-3@gated-at.bofh.it> <tWHoR-5Yd-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, 26 Jun 2017, Vikas Shivappa wrote:
> +static struct mon_evt mbm_total_event = {
> +	.name = "mbm_total_bytes",
> +	.evtid = QOS_L3_MBM_TOTAL_EVENT_ID,
> +};
> +
> +static struct mon_evt mbm_local_event = {
> +	.name = "mbm_local_bytes",
> +	.evtid = QOS_L3_MBM_LOCAL_EVENT_ID,
> +};
> +
>  static void l3_mon_evt_init(struct rdt_resource *r)
>  {
>  	INIT_LIST_HEAD(&r->evt_list);
>  
>  	if (rdt_mon_features & (1 << QOS_L3_OCCUP_EVENT_ID))
>  		list_add_tail(&llc_occupancy_event.list, &r->evt_list);
> +	if (is_mbm_total_enabled())
> +		list_add_tail(&mbm_total_event.list, &r->evt_list);
> +	if (is_mbm_local_enabled())
> +		list_add_tail(&mbm_local_event.list, &r->evt_list);

Confused. This hooks all monitoring features to RDT_RESOURCE_L3. Why?

Thanks,

	tglx

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 19/21] x86/intel_rdt/mbm: Basic counting of MBM events (total and local) Vikas Shivappa <vikas.shivappa@linux.intel.com> - 2017-06-26 21:00 +0200
  Re: [PATCH 19/21] x86/intel_rdt/mbm: Basic counting of MBM events  (total and local) Thomas Gleixner <tglx@linutronix.de> - 2017-07-02 15:50 +0200

csiph-web