Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 41) sorted by relevance

12

/tools/virtio/linux/
Derr.h12 static inline long __must_check PTR_ERR(const void *ptr) in PTR_ERR() argument
14 return (long) ptr; in PTR_ERR()
17 static inline long __must_check IS_ERR(const void *ptr) in IS_ERR() argument
19 return IS_ERR_VALUE((unsigned long)ptr); in IS_ERR()
22 static inline long __must_check IS_ERR_OR_NULL(const void *ptr) in IS_ERR_OR_NULL() argument
24 return !ptr || IS_ERR_VALUE((unsigned long)ptr); in IS_ERR_OR_NULL()
Duaccess.h12 #define put_user(x, ptr) \ argument
14 typeof(ptr) __pu_ptr = (ptr); \
20 #define get_user(x, ptr) \ argument
22 typeof(ptr) __pu_ptr = (ptr); \
Dkernel.h84 #define container_of(ptr, type, member) ({ \ argument
85 const typeof( ((type *)0)->member ) *__mptr = (ptr); \
/tools/net/
Dbpf_jit_disasm.c113 char *ptr, *pptr, *tmp; in get_last_jit_image() local
126 ptr = haystack; in get_last_jit_image()
128 ret = regexec(&regex, ptr, 1, pmatch, 0); in get_last_jit_image()
130 ptr += pmatch[0].rm_eo; in get_last_jit_image()
137 ptr = haystack + off - (pmatch[0].rm_eo - pmatch[0].rm_so); in get_last_jit_image()
138 ret = sscanf(ptr, "flen=%d proglen=%d pass=%d image=%lx", in get_last_jit_image()
143 tmp = ptr = haystack + off; in get_last_jit_image()
144 while ((ptr = strtok(tmp, "\n")) != NULL && ulen < ilen) { in get_last_jit_image()
146 if (!strstr(ptr, "JIT code")) in get_last_jit_image()
148 pptr = ptr; in get_last_jit_image()
[all …]
/tools/perf/util/
Dsysfs.c27 const char * const *ptr; in sysfs_find_mountpoint() local
34 ptr = sysfs_known_mountpoints; in sysfs_find_mountpoint()
35 while (*ptr) { in sysfs_find_mountpoint()
36 if (sysfs_valid_mountpoint(*ptr) == 0) { in sysfs_find_mountpoint()
38 strcpy(sysfs_mountpoint, *ptr); in sysfs_find_mountpoint()
41 ptr++; in sysfs_find_mountpoint()
Dwrapper.c27 void *xrealloc(void *ptr, size_t size) in xrealloc() argument
29 void *ret = realloc(ptr, size); in xrealloc()
31 ret = realloc(ptr, 1); in xrealloc()
34 ret = realloc(ptr, size); in xrealloc()
36 ret = realloc(ptr, 1); in xrealloc()
Dsymbol-minimal.c36 void *ptr; in read_build_id() local
38 ptr = note_data; in read_build_id()
39 while (ptr < (note_data + note_len)) { in read_build_id()
43 nhdr = ptr; in read_build_id()
53 ptr += sizeof(*nhdr); in read_build_id()
54 name = ptr; in read_build_id()
55 ptr += namesz; in read_build_id()
60 memcpy(bf, ptr, sz); in read_build_id()
65 ptr += descsz; in read_build_id()
Dcolor.c51 const char *ptr = value; in color_parse_mem() local
64 const char *word = ptr; in color_parse_mem()
72 ptr = word + wordlen; in color_parse_mem()
73 while (len > 0 && isspace(*ptr)) { in color_parse_mem()
74 ptr++; in color_parse_mem()
Dutil.c188 int hex2u64(const char *ptr, u64 *long_val) in hex2u64() argument
190 const char *p = ptr; in hex2u64()
203 return p - ptr; in hex2u64()
Dunwind.c82 #define dw_read(ptr, type, end) ({ \ argument
83 type *__p = (type *) ptr; \
88 ptr = (typeof(ptr)) __p; \
144 #define dw_read_encoded_value(ptr, end, enc) ({ \ argument
146 if (__dw_read_encoded_value(&ptr, end, &__v, enc)) { \
Dprobe-event.c682 static int parse_line_num(char **ptr, int *val, const char *what) in parse_line_num() argument
684 const char *start = *ptr; in parse_line_num()
687 *val = strtol(*ptr, ptr, 0); in parse_line_num()
688 if (errno || *ptr == start) { in parse_line_num()
790 char *ptr, *tmp; in parse_perf_probe_point() local
800 ptr = strpbrk(arg, ";=@+%"); in parse_perf_probe_point()
801 if (ptr && *ptr == '=') { /* Event name */ in parse_perf_probe_point()
802 *ptr = '\0'; in parse_perf_probe_point()
803 tmp = ptr + 1; in parse_perf_probe_point()
820 ptr = strpbrk(arg, ";:+@%"); in parse_perf_probe_point()
[all …]
Dsymbol-elf.c308 void *ptr; in elf_read_build_id() local
352 ptr = data->d_buf; in elf_read_build_id()
353 while (ptr < (data->d_buf + data->d_size)) { in elf_read_build_id()
354 GElf_Nhdr *nhdr = ptr; in elf_read_build_id()
359 ptr += sizeof(*nhdr); in elf_read_build_id()
360 name = ptr; in elf_read_build_id()
361 ptr += namesz; in elf_read_build_id()
366 memcpy(bf, ptr, sz); in elf_read_build_id()
372 ptr += descsz; in elf_read_build_id()
/tools/lib/lk/
Ddebugfs.c26 const char * const *ptr; in debugfs_find_mountpoint() local
33 ptr = debugfs_known_mountpoints; in debugfs_find_mountpoint()
34 while (*ptr) { in debugfs_find_mountpoint()
35 if (debugfs_valid_mountpoint(*ptr) == 0) { in debugfs_find_mountpoint()
37 strcpy(debugfs_mountpoint, *ptr); in debugfs_find_mountpoint()
40 ptr++; in debugfs_find_mountpoint()
/tools/perf/ui/gtk/
Dhelpline.c30 char *ptr; in gtk_helpline_show() local
38 ptr = strchr(ui_helpline__current, '\n'); in gtk_helpline_show()
39 if (ptr && (ptr - ui_helpline__current) <= backlog) { in gtk_helpline_show()
40 *ptr = '\0'; in gtk_helpline_show()
/tools/perf/
Dbuiltin-kmem.c38 u64 ptr; member
127 static int insert_alloc_stat(unsigned long call_site, unsigned long ptr, in insert_alloc_stat() argument
138 if (ptr > data->ptr) in insert_alloc_stat()
140 else if (ptr < data->ptr) in insert_alloc_stat()
146 if (data && data->ptr == ptr) { in insert_alloc_stat()
156 data->ptr = ptr; in insert_alloc_stat()
215 unsigned long ptr = perf_evsel__intval(evsel, sample, "ptr"), in perf_evsel__process_alloc_event() local
220 if (insert_alloc_stat(call_site, ptr, bytes_req, bytes_alloc, sample->cpu) || in perf_evsel__process_alloc_event()
250 static struct alloc_stat *search_alloc_stat(unsigned long ptr, in search_alloc_stat() argument
256 struct alloc_stat key = { .ptr = ptr, .call_site = call_site }; in search_alloc_stat()
[all …]
Dbuiltin-probe.c88 static int set_target(const char *ptr) in set_target() argument
100 if (!params.target && ptr && *ptr == '/') { in set_target()
101 params.target = ptr; in set_target()
103 buf = ptr + (strlen(ptr) - 3); in set_target()
/tools/power/cpupower/lib/
Dcpufreq.c50 void cpufreq_put_driver(char *ptr) in cpufreq_put_driver() argument
52 if (!ptr) in cpufreq_put_driver()
54 free(ptr); in cpufreq_put_driver()
Dcpufreq.h109 extern void cpufreq_put_driver(char *ptr);
/tools/perf/scripts/python/
Dcheck-perf-trace.py41 call_site, ptr, bytes_req, bytes_alloc, argument
50 (call_site, ptr, bytes_req, bytes_alloc,
/tools/perf/scripts/perl/
Dcheck-perf-trace.pl47 $call_site, $ptr, $bytes_req, $bytes_alloc,
57 $call_site, $ptr, $bytes_req, $bytes_alloc,
/tools/virtio/virtio-trace/
Dtrace-agent.c75 char *ptr; in parse_size() local
77 value = strtoul(arg, &ptr, 10); in parse_size()
78 switch (*ptr) { in parse_size()
/tools/lib/traceevent/
Devent-parse.h508 #define data2host2(pevent, ptr) __data2host2(pevent, *(unsigned short *)(ptr)) argument
509 #define data2host4(pevent, ptr) __data2host4(pevent, *(unsigned int *)(ptr)) argument
510 #define data2host8(pevent, ptr) \ argument
514 memcpy(&__val, (ptr), sizeof(unsigned long long)); \
578 unsigned long long pevent_read_number(struct pevent *pevent, const void *ptr, int size);
Devent-parse.c3033 const void *ptr, int size) in pevent_read_number() argument
3037 return *(unsigned char *)ptr; in pevent_read_number()
3039 return data2host2(pevent, ptr); in pevent_read_number()
3041 return data2host4(pevent, ptr); in pevent_read_number()
3043 return data2host8(pevent, ptr); in pevent_read_number()
3733 char *ptr; in make_bprint_args() local
3775 for (ptr = fmt + 6, bptr = data + field->offset; in make_bprint_args()
3776 bptr < data + size && *ptr; ptr++) { in make_bprint_args()
3779 if (*ptr == '%') { in make_bprint_args()
3781 ptr++; in make_bprint_args()
[all …]
/tools/perf/util/include/linux/
Dkernel.h26 #define container_of(ptr, type, member) ({ \ argument
27 const typeof(((type *)0)->member) * __mptr = (ptr); \
/tools/power/acpi/
Dacpidump.c339 char filename[256], *ptr; in acpi_dump_dynamic_SSDT() local
376 ptr = malloc(table_header.length); in acpi_dump_dynamic_SSDT()
380 count = fread(ptr + readcount, 1, 256, fp); in acpi_dump_dynamic_SSDT()
384 ptable = (struct acpi_table_header *) ptr; in acpi_dump_dynamic_SSDT()
389 free(ptr); in acpi_dump_dynamic_SSDT()

12