cregit-Linux how code gets into the kernel

Release 4.18 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, bool size) { p->curr = 0; p->next = p->step = total / 16 ?: 1; p->total = total; p->title = title; p->size = size; if (ui_progress__ops->init) ui_progress__ops->init(p); }

Contributors

PersonTokensPropCommitsCommitProp
Arnaldo Carvalho de Melo3243.84%120.00%
Jiri Olsa2635.62%360.00%
Namhyung Kim1520.55%120.00%
Total73100.00%5100.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 Melo8541.87%222.22%
Namhyung Kim6331.03%222.22%
Jiri Olsa5426.60%444.44%
Greg Kroah-Hartman10.49%111.11%
Total203100.00%9100.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.