tools/perf/util/cache.h
Source file repositories/reference/linux-study-clean/tools/perf/util/cache.h
File Facts
- System
- Linux kernel
- Corpus path
tools/perf/util/cache.h- Extension
.h- Size
- 764 bytes
- Lines
- 32
- Domain
- Support Tooling And Documentation
- Bucket
- tools
- Inferred role
- Support Tooling And Documentation: implementation source
- Status
- source implementation candidate
Why This File Exists
Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
- Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.
Dependency Surface
strbuf.hsubcmd/pager.h../ui/ui.hlinux/compiler.hlinux/string.h
Detected Declarations
function is_absolute_path
Annotated Snippet
#ifndef __PERF_CACHE_H
#define __PERF_CACHE_H
#include "strbuf.h"
#include <subcmd/pager.h>
#include "../ui/ui.h"
#include <linux/compiler.h>
#include <linux/string.h>
#define CMD_EXEC_PATH "--exec-path"
#define CMD_DEBUGFS_DIR "--debugfs-dir="
#define EXEC_PATH_ENVIRONMENT "PERF_EXEC_PATH"
#define PERF_DEBUGFS_ENVIRONMENT "PERF_DEBUGFS_DIR"
#define PERF_TRACEFS_ENVIRONMENT "PERF_TRACEFS_DIR"
#define PERF_PAGER_ENVIRONMENT "PERF_PAGER"
int split_cmdline(char *cmdline, const char ***argv);
#define alloc_nr(x) (((x)+16)*3/2)
static inline int is_absolute_path(const char *path)
{
return path[0] == '/';
}
char *mkpath(char *path_buf, size_t sz, const char *fmt, ...) __printf(3, 4);
#endif /* __PERF_CACHE_H */
Annotation
- Immediate include surface: `strbuf.h`, `subcmd/pager.h`, `../ui/ui.h`, `linux/compiler.h`, `linux/string.h`.
- Detected declarations: `function is_absolute_path`.
- Atlas domain: Support Tooling And Documentation / tools.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.