xref: /kernel/linux/linux-6.6/tools/perf/util/units.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/tools/perf/util/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci#ifndef PERF_UNIT_H
362306a36Sopenharmony_ci#define PERF_UNIT_H
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci#include <stddef.h>
662306a36Sopenharmony_ci#include <linux/types.h>
762306a36Sopenharmony_ci
862306a36Sopenharmony_cistruct parse_tag {
962306a36Sopenharmony_ci	char tag;
1062306a36Sopenharmony_ci	int  mult;
1162306a36Sopenharmony_ci};
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciunsigned long parse_tag_value(const char *str, struct parse_tag *tags);
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cidouble convert_unit_double(double value, char *unit);
1662306a36Sopenharmony_ciunsigned long convert_unit(unsigned long value, char *unit);
1762306a36Sopenharmony_ciint unit_number__scnprintf(char *buf, size_t size, u64 n);
1862306a36Sopenharmony_ci
1962306a36Sopenharmony_ci#endif /* PERF_UNIT_H */
20

Indexes created Thu Nov 07 10:32:03 CST 2024