> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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 | Reserved | |
| 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](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/getpmcvalue.md)\
[ConfigurePMCs](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/configurepmcs.md)\
[ConfigureNBPMCs](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/configurenbpmcs.md)\
[XBOX 上的 PIX3](https://docs.xbox.com/zh-CN/reference/tools/pix3/pix3_members.md)\
[PIX（NDA 主题）](https://docs.xbox.com/zh-CN/tools/tools-console/pix/pix.md)


## Related topics

- [ConfigureNBPMCs](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/configurenbpmcs.md)
- [ConfigurePMCs](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/configurepmcs.md)
- [GetPMCValue](https://docs.xbox.com/zh-CN/reference/tools/pix3/functions/getpmcvalue.md)
- [PIX3（API 内容）](https://docs.xbox.com/zh-CN/reference/tools/pix3/pix3_members.md)
- [GET (/ext/unattendedsetup/configure)](https://docs.xbox.com/zh-CN/reference/deviceportal/unattendedsetup/uri-extunattendedsetupconfigure-get.md)
