tools/perf/util/pstack.h

Source file repositories/reference/linux-study-clean/tools/perf/util/pstack.h

File Facts

System
Linux kernel
Corpus path
tools/perf/util/pstack.h
Extension
.h
Size
452 bytes
Lines
16
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.

Dependency Surface

Detected Declarations

Annotated Snippet

#ifndef _PERF_PSTACK_
#define _PERF_PSTACK_

#include <stdbool.h>

struct pstack;
struct pstack *pstack__new(unsigned short max_nr_entries);
void pstack__delete(struct pstack *pstack);
bool pstack__empty(const struct pstack *pstack);
void pstack__remove(struct pstack *pstack, void *key);
void pstack__push(struct pstack *pstack, void *key);
void *pstack__peek(struct pstack *pstack);

#endif /* _PERF_PSTACK_ */

Annotation

Implementation Notes