tools/perf/ui/progress.h

Source file repositories/reference/linux-study-clean/tools/perf/ui/progress.h

File Facts

System
Linux kernel
Corpus path
tools/perf/ui/progress.h
Extension
.h
Size
773 bytes
Lines
35
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

struct ui_progress {
	const char *title;
	u64 curr, next, step, total;
	bool size;
};

void __ui_progress__init(struct ui_progress *p, u64 total,
			 const char *title, bool size);

#define ui_progress__init(p, total, title) \
	__ui_progress__init(p, total, title, false)

#define ui_progress__init_size(p, total, title) \
	__ui_progress__init(p, total, title, true)

void ui_progress__update(struct ui_progress *p, u64 adv);

struct ui_progress_ops {
	void (*init)(struct ui_progress *p);
	void (*update)(struct ui_progress *p);
	void (*finish)(void);
};

extern struct ui_progress_ops *ui_progress__ops;

#endif

Annotation

Implementation Notes