mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
perf tools: Move units conversion/formatting routines to separate object
Out of util.h, to disentangle it a bit more. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-vpksyj3w5fk9t8s6mxmkajyr@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
9607ad3a63
commit
58db1d6e7d
11 changed files with 56 additions and 39 deletions
10
tools/perf/util/units.h
Normal file
10
tools/perf/util/units.h
Normal file
|
@ -0,0 +1,10 @@
|
|||
#ifndef PERF_UNIT_H
|
||||
#define PERF_UNIT_H
|
||||
|
||||
#include <stddef.h>
|
||||
#include <linux/types.h>
|
||||
|
||||
unsigned long convert_unit(unsigned long value, char *unit);
|
||||
int unit_number__scnprintf(char *buf, size_t size, u64 n);
|
||||
|
||||
#endif /* PERF_UNIT_H */
|
Loading…
Add table
Add a link
Reference in a new issue