( ctx context.Context, paths *linuxpath.Paths, nodeID int, lpID int, cacheIndex int, )
| 229 | } |
| 230 | |
| 231 | func memoryCacheSharedCPUMap( |
| 232 | ctx context.Context, |
| 233 | paths *linuxpath.Paths, |
| 234 | nodeID int, |
| 235 | lpID int, |
| 236 | cacheIndex int, |
| 237 | ) string { |
| 238 | scpuPath := filepath.Join( |
| 239 | paths.NodeCPUCacheIndex(nodeID, lpID, cacheIndex), |
| 240 | "shared_cpu_map", |
| 241 | ) |
| 242 | sharedCpuMap, err := os.ReadFile(scpuPath) |
| 243 | if err != nil { |
| 244 | log.Warn(ctx, "%s", err) |
| 245 | return "" |
| 246 | } |
| 247 | return string(sharedCpuMap[:len(sharedCpuMap)-1]) |
| 248 | } |
no test coverage detected
searching dependent graphs…