cregit-Linux how code gets into the kernel

Release 4.11 tools/perf/ui/progress.c

Directory: tools/perf/ui
#include "../cache.h"
#include "progress.h"


static void null_progress__update(struct ui_progress *p __maybe_unused) { }

Contributors

PersonTokensPropCommitsCommitProp
Namhyung Kim763.64%133.33%
Arnaldo Carvalho de Melo436.36%266.67%
Total11100.00%3100.00%

static struct ui_progress_ops null_progress__ops = { .update = null_progress__update, }; struct ui_progress_ops *ui_progress__ops = &null_progress__ops;
void ui_progress__update(struct ui_progress *p, u64 adv) { p->curr += adv; if (p->curr >= p->next) { p->next += p->step; ui_progress__ops->update(p); } }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo4189.13%150.00%
Namhyung Kim510.87%150.00%
Total46100.00%2100.00%


void ui_progress__init(struct ui_progress *p, u64 total, const char *title) { p->curr = 0; p->next = p->step = total / 16; p->total = total; p->title = title; }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo3368.75%150.00%
Namhyung Kim1531.25%150.00%
Total48100.00%2100.00%


void ui_progress__finish(void) { if (ui_progress__ops->finish) ui_progress__ops->finish(); }

Contributors

PersonTokensPropCommitsCommitProp
Namhyung Kim1688.89%150.00%
Arnaldo Carvalho de Melo211.11%150.00%
Total18100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo8657.72%250.00%
Namhyung Kim6342.28%250.00%
Total149100.00%4100.00%
Directory: tools/perf/ui
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.