> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ConfigureL2IPMCs

> ConfigureL2IPMCs

# ConfigureL2IPMCs

設定 L2 快取內的效能計數器。

## 語法

```cpp theme={null}
HRESULT ConfigureL2IPMCs(  
         unsigned int eventIndex10,  
         unsigned int eventIndex11,  
         unsigned int eventIndex12,  
         unsigned int eventIndex13  
)  
```

### 參數

*eventIndex10*   \
類型：unsigned int

要計數之事件的索引。

*eventIndex11*   \
類型：unsigned int

要計數之事件的索引。

*eventIndex12*   \
類型：unsigned int

要計數之事件的索引。

*eventIndex13*   \
類型：unsigned int

要計數之事件的索引。

### 傳回值

類型：HRESULT

成功或錯誤碼。

| 代碼 | 描述 |
| - | - |
| S\_OK | 成功。 |
| E\_INVALIDARG | 一或多個索引超出範圍。 |
| E\_ACCESS\_DENIED | 拒絕存取驅動程式。 |

## 備註

共有兩個 L2 快取，每個 L2 快取都有 4 個可計數事件的效能計數器。\
ConfigureL2IPMCs 會將兩個 L2 的事件設定為相同。\
第一個 L2 繫結至核心 0-3，第二個繫結至核心 4-7。特定 L2 的事件必須從繫結至該 L2 的核心讀取。\
L2 交易為 64 位元組。

| 索引 | 事件 | 描述 |
| - | - | - |
| 0 | 保留 | |
| 1 | L2MissICFill | L2 未命中的 IC 要求數目 |
| 2 | L2MissDCFill | L2 未命中的 DC 要求數目 |
| 3 | L2MissPrefetchFill | L2 未命中的預先擷取要求數目 |
| 4 | L2MissAll | L2 未命中的總數 |
| 5 | L2Writeback | L2 乾淨與已變更回寫的數目 |
| 6 | L2CleanWriteback | L2 乾淨回寫的數目 |
| 7 | L2Fill | L2 填入的數目 |
| 8 | L2FillWriteback | L2 填入與回寫的總數 |

## 需求

**標頭：** pix3.h

**程式庫：** pixevt.lib

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[GetPMCValue](/zh-TW/reference/tools/pix3/functions/getpmcvalue)\
[ConfigurePMCs](/zh-TW/reference/tools/pix3/functions/configurepmcs)\
[ConfigureNBPMCs](/zh-TW/reference/tools/pix3/functions/configurenbpmcs)\
[XBOX 上的 PIX3](/zh-TW/reference/tools/pix3/pix3_members)\
[PIX (NDA 主題)](/zh-TW/tools/tools-console/pix/pix)


## Related topics

- [ConfigureNBPMCs](/zh-TW/reference/tools/pix3/functions/configurenbpmcs.md)
- [ConfigurePMCs](/zh-TW/reference/tools/pix3/functions/configurepmcs.md)
- [GetPMCValue](/zh-TW/reference/tools/pix3/functions/getpmcvalue.md)
- [PIX3](/zh-TW/reference/tools/pix3/pix3_members.md)
- [Configure PSN Event Streams](/api-reference/addon/configure-psn-event-streams.md)
