cregit-Linux how code gets into the kernel

Release 4.10 tools/perf/util/xyarray.h

Directory: tools/perf/util
#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;
	
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

PersonTokensPropCommitsCommitProp
arnaldo carvalho de meloarnaldo carvalho de melo38100.00%1100.00%
Total38100.00%1100.00%

#endif /* _PERF_XYARRAY_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
arnaldo carvalho de meloarnaldo carvalho de melo9088.24%150.00%
jiri olsajiri olsa1211.76%150.00%
Total102100.00%2100.00%
Directory: tools/perf/util
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.