/tools/perf/util/ |
D | util.h | 26 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) argument 29 #define TYPEOF(x) (__typeof__(x)) argument 31 #define TYPEOF(x) argument 34 #define MSB(x, bits) ((x) & TYPEOF(x)(~0ULL << (sizeof(x) * 8 - (bits)))) argument 38 #define decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) argument 123 #define __attribute__(x) argument 215 #define sane_istest(x,mask) ((sane_ctype[(unsigned char)(x)] & (mask)) != 0) argument 216 #define isascii(x) (((x) & ~0x7f) == 0) argument 217 #define isspace(x) sane_istest(x,GIT_SPACE) argument 218 #define isdigit(x) sane_istest(x,GIT_DIGIT) argument [all …]
|
D | cache.h | 38 #define alloc_nr(x) (((x)+16)*3/2) argument 47 #define ALLOC_GROW(x, nr, alloc) \ argument 54 x = xrealloc((x), alloc * sizeof(*(x))); \
|
D | xyarray.h | 15 static inline void *xyarray__entry(struct xyarray *xy, int x, int y) in xyarray__entry() argument 17 return &xy->contents[x * xy->row_size + y * xy->entry_size]; in xyarray__entry()
|
D | run-command.h | 13 #define IS_RUN_COMMAND_ERR(x) (-(x) >= ERR_RUN_COMMAND_FORK) argument
|
/tools/perf/util/include/linux/ |
D | kernel.h | 11 #define PERF_ALIGN(x, a) __PERF_ALIGN_MASK(x, (typeof(x))(a)-1) argument 12 #define __PERF_ALIGN_MASK(x, mask) (((x)+(mask))&~(mask)) argument 34 #define max(x, y) ({ \ argument 35 typeof(x) _max1 = (x); \ 42 #define min(x, y) ({ \ argument 43 typeof(x) _min1 = (x); \ 50 #define roundup(x, y) ( \ argument 53 (((x) + (__y - 1)) / __y) * __y; \ 70 #define cpu_to_le64(x) (x) argument 71 #define cpu_to_le32(x) (x) argument [all …]
|
/tools/virtio/linux/ |
D | kernel.h | 48 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) argument 88 #define uninitialized_var(x) x = x argument 91 # define likely(x) (__builtin_expect(!!(x), 1)) argument 94 # define unlikely(x) (__builtin_expect(!!(x), 0)) argument 106 #define min(x, y) ({ \ argument 107 typeof(x) _min1 = (x); \
|
D | uaccess.h | 5 #define ACCESS_ONCE(x) (*(volatile typeof(x) *)&(x)) argument 12 #define put_user(x, ptr) \ argument 16 ACCESS_ONCE(*(__pu_ptr)) = x; \ 20 #define get_user(x, ptr) \ argument 24 x = ACCESS_ONCE(*(__pu_ptr)); \
|
D | ratelimit.h | 3 #define __ratelimit(x) (*(x)) argument
|
D | err.h | 5 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO) argument
|
/tools/perf/ui/tui/ |
D | util.c | 75 int x, y, len, key; in ui_browser__input_window() local 98 x = SLtt_Screen_Cols / 2 - max_len / 2; in ui_browser__input_window() 101 SLsmg_draw_box(y, x++, nr_lines, max_len); in ui_browser__input_window() 103 SLsmg_gotorc(y, x + 1); in ui_browser__input_window() 106 SLsmg_gotorc(++y, x); in ui_browser__input_window() 109 SLsmg_write_wrapped_string((unsigned char *)text, y, x, in ui_browser__input_window() 114 SLsmg_gotorc(y + len - 1, x); in ui_browser__input_window() 117 SLsmg_draw_box(y++, x + 1, 3, max_len - 2); in ui_browser__input_window() 119 SLsmg_gotorc(y + 3, x); in ui_browser__input_window() 123 x += 2; in ui_browser__input_window() [all …]
|
/tools/power/cpupower/utils/ |
D | cpupower.c | 26 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) argument 117 int ret, x, new_argc = 0; in handle_options() local 122 for (x = 0; x < *argc && ((*argv)[x])[0] == '-'; x++) { in handle_options() 123 const char *param = (*argv)[x]; in handle_options() 132 if (!strcmp((*argv)[x+1], "all")) in handle_options() 136 (*argv)[x+1], cpus_chosen); in handle_options() 143 x += 1; in handle_options()
|
/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
D | SchedGui.py | 72 (x, y) = self.scroll.GetViewStart() 73 return (x * self.scroll_scale, y * self.scroll_scale) 76 (x, y) = self.scroll_start() 77 return self.px_to_us(x) 113 (x, y) = self.scroll_start() 114 start = self.px_to_us(x) 115 end = self.px_to_us(x + width) 135 (x, y) = event.GetPositionTuple() 140 t = self.px_to_us(x) + self.ts_start 148 def __zoom(self, x): argument [all …]
|
/tools/lib/lk/ |
D | debugfs.h | 4 #define _STR(x) #x argument 5 #define STR(x) _STR(x) argument
|
/tools/power/acpi/ |
D | acpidump.c | 223 struct acpi_fadt_descriptor x; in acpi_dump_FADT() local 227 memcpy(&x, tbl, len); in acpi_dump_FADT() 228 x.header.length = len; in acpi_dump_FADT() 232 if (x.header.length >= 148 && x.Xdsdt) { in acpi_dump_FADT() 233 addr = (unsigned long)x.Xdsdt; in acpi_dump_FADT() 235 x.Xdsdt = lseek(fd, 0, SEEK_CUR); in acpi_dump_FADT() 237 } else if (x.header.length >= 44 && x.dsdt) { in acpi_dump_FADT() 238 addr = (unsigned long)x.dsdt; in acpi_dump_FADT() 240 x.dsdt = lseek(fd, 0, SEEK_CUR); in acpi_dump_FADT() 253 if (x.header.length >= 140 && x.xfirmware_ctrl) { in acpi_dump_FADT() [all …]
|
/tools/perf/arch/powerpc/util/ |
D | header.c | 9 #define __stringify_1(x) #x argument 10 #define __stringify(x) __stringify_1(x) argument
|
/tools/power/cpupower/utils/helpers/ |
D | cpuid.c | 49 unsigned int proc, x; in get_cpu_info() local 78 for (x = 1; x < X86_VENDOR_MAX; x++) { in get_cpu_info() 79 if (strstr(value, cpu_vendor_table[x])) in get_cpu_info() 80 cpu_info->vendor = x; in get_cpu_info()
|
/tools/perf/bench/ |
D | mem-memset.c | 162 #define print_bps(x) do { \ argument 163 if (x < K) \ 164 printf(" %14lf B/Sec", x); \ 165 else if (x < K * K) \ 166 printf(" %14lfd KB/Sec", x / K); \ 167 else if (x < K * K * K) \ 168 printf(" %14lf MB/Sec", x / K / K); \ 170 printf(" %14lf GB/Sec", x / K / K / K); \
|
D | mem-memcpy.c | 168 #define print_bps(x) do { \ argument 169 if (x < K) \ 170 printf(" %14lf B/Sec", x); \ 171 else if (x < K * K) \ 172 printf(" %14lfd KB/Sec", x / K); \ 173 else if (x < K * K * K) \ 174 printf(" %14lf MB/Sec", x / K / K); \ 176 printf(" %14lf GB/Sec", x / K / K / K); \
|
/tools/vm/ |
D | page-types.c | 46 # define _STR(x) #x argument 47 # define STR(x) _STR(x) argument 62 #define PM_PSHIFT(x) (((u64) (x) << PM_PSHIFT_OFFSET) & PM_PSHIFT_MASK) argument 64 #define PM_PFRAME(x) ((x) & PM_PFRAME_MASK) argument 199 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) argument 201 #define min_t(type, x, y) ({ \ argument 202 type __min1 = (x); \ 206 #define max_t(type, x, y) ({ \ argument 207 type __max1 = (x); \ 216 static void fatal(const char *x, ...) in fatal() argument [all …]
|
/tools/perf/ |
D | perf.h | 143 #define unlikely(x) __builtin_expect(!!(x), 0) argument 144 #define min(x, y) ({ \ argument 145 typeof(x) _min1 = (x); \
|
/tools/lib/traceevent/ |
D | event-utils.h | 41 #define min(x, y) ({ \ argument 42 typeof(x) _min1 = (x); \
|
/tools/power/cpupower/utils/idle_monitor/ |
D | idle_monitors.h | 13 #define DEF(x) extern struct cpuidle_monitor x ##_monitor; argument
|
/tools/testing/selftests/net/ |
D | psock_tpacket.c | 71 # define __align_tpacket(x) __attribute__((aligned(TPACKET_ALIGN(x)))) argument 74 #define BLOCK_STATUS(x) ((x)->h1.block_status) argument 75 #define BLOCK_NUM_PKTS(x) ((x)->h1.num_pkts) argument 76 #define BLOCK_O2FP(x) ((x)->h1.offset_to_first_pkt) argument 77 #define BLOCK_LEN(x) ((x)->h1.blk_len) argument 78 #define BLOCK_SNUM(x) ((x)->h1.seq_num) argument 79 #define BLOCK_O2PRIV(x) ((x)->offset_to_priv) argument 80 #define BLOCK_PRIV(x) ((void *) ((uint8_t *) (x) + BLOCK_O2PRIV(x))) argument 82 #define ALIGN_8(x) (((x) + 8 - 1) & ~(8 - 1)) argument
|
/tools/power/cpupower/bench/ |
D | benchmark.h | 21 #define ROUNDS(x) {unsigned int rcnt; \ argument 22 for (rcnt = 0; rcnt < x*1000; rcnt++) { \
|
/tools/testing/selftests/vm/ |
D | hugepage-shm.c | 43 #define dprintf(x) printf(x) argument
|