Release 4.14 tools/perf/util/xyarray.h
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _PERF_XYARRAY_H_
#define _PERF_XYARRAY_H_ 1
#include <sys/types.h>
struct xyarray {
size_t row_size;
size_t entry_size;
size_t entries;
size_t max_x;
size_t max_y;
char contents[];
};
struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size);
void xyarray__delete(struct xyarray *xy);
void xyarray__reset(struct xyarray *xy);
static inline void *xyarray__entry(struct xyarray *xy, int x, int y)
{
return &xy->contents[x * xy->row_size + y * xy->entry_size];
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnaldo Carvalho de Melo | 38 | 100.00% | 1 | 100.00% |
Total | 38 | 100.00% | 1 | 100.00% |
static inline int xyarray__max_y(struct xyarray *xy)
{
return xy->max_y;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andi Kleen | 16 | 94.12% | 1 | 50.00% |
Jin Yao | 1 | 5.88% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
static inline int xyarray__max_x(struct xyarray *xy)
{
return xy->max_x;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andi Kleen | 16 | 94.12% | 1 | 50.00% |
Jin Yao | 1 | 5.88% | 1 | 50.00% |
Total | 17 | 100.00% | 2 | 100.00% |
#endif /* _PERF_XYARRAY_H_ */
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Arnaldo Carvalho de Melo | 90 | 62.94% | 1 | 20.00% |
Andi Kleen | 38 | 26.57% | 1 | 20.00% |
Jiri Olsa | 12 | 8.39% | 1 | 20.00% |
Jin Yao | 2 | 1.40% | 1 | 20.00% |
Greg Kroah-Hartman | 1 | 0.70% | 1 | 20.00% |
Total | 143 | 100.00% | 5 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.