cregit-Linux how code gets into the kernel

Release 4.14 tools/perf/ui/progress.c

Directory: tools/perf/ui
// SPDX-License-Identifier: GPL-2.0
#include <linux/kernel.h>
#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) { u64 last = p->curr; p->curr += adv; if (p->curr >= p->next) { u64 nr = DIV_ROUND_UP(p->curr - last, p->step); p->next += nr * p->step; ui_progress__ops->update(p); } }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo4157.75%133.33%
Jiri Olsa2535.21%133.33%
Namhyung Kim57.04%133.33%
Total71100.00%3100.00%


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

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo3364.71%133.33%
Namhyung Kim1529.41%133.33%
Jiri Olsa35.88%133.33%
Total51100.00%3100.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 Melo8647.51%228.57%
Namhyung Kim6334.81%228.57%
Jiri Olsa3117.13%228.57%
Greg Kroah-Hartman10.55%114.29%
Total181100.00%7100.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.