Searched refs:name_len (Results 1 – 15 of 15) sorted by relevance
/tools/testing/selftests/bpf/prog_tests/ |
D | obj_name.c | 24 size_t name_len = strlen(tests[i].name) + 1; in test_obj_name() local 30 ncopy = name_len < sizeof(attr.prog_name) ? in test_obj_name() 31 name_len : sizeof(attr.prog_name); in test_obj_name() 51 ncopy = name_len < sizeof(attr.map_name) ? in test_obj_name() 52 name_len : sizeof(attr.map_name); in test_obj_name()
|
/tools/lib/api/fs/ |
D | fs.c | 218 size_t name_len = strlen(fs->name); in fs__env_override() local 220 char upper_name[name_len + 5 + 1]; in fs__env_override() 222 memcpy(upper_name, fs->name, name_len); in fs__env_override() 223 mem_toupper(upper_name, name_len); in fs__env_override() 224 strcpy(&upper_name[name_len], "_PATH"); in fs__env_override() 271 size_t name_len = strlen(fs->name); in mount_overload() local 273 char upper_name[5 + name_len + 12 + 1]; in mount_overload() 275 snprintf(upper_name, name_len, "PERF_%s_ENVIRONMENT", fs->name); in mount_overload() 276 mem_toupper(upper_name, name_len); in mount_overload()
|
/tools/perf/util/ |
D | bpf-event.c | 131 int name_len; in synthesize_bpf_prog_name() local 133 name_len = snprintf(buf, size, "bpf_prog_"); in synthesize_bpf_prog_name() 134 name_len += snprintf_hex(buf + name_len, size - name_len, in synthesize_bpf_prog_name() 147 name_len += snprintf(buf + name_len, size - name_len, in synthesize_bpf_prog_name() 149 return name_len; in synthesize_bpf_prog_name() 236 int name_len; in perf_event__synthesize_one_bpf_prog() local 249 name_len = synthesize_bpf_prog_name(ksymbol_event->name, in perf_event__synthesize_one_bpf_prog() 251 ksymbol_event->header.size += PERF_ALIGN(name_len + 1, in perf_event__synthesize_one_bpf_prog()
|
D | build-id.c | 301 static int write_buildid(const char *name, size_t name_len, struct build_id *bid, in write_buildid() argument 308 len = name_len + 1; in write_buildid() 323 return write_padded(fd, name, name_len + 1, len); in write_buildid() 341 size_t name_len; in machine__write_buildid_table() local 349 name_len = pos->short_name_len; in machine__write_buildid_table() 352 name_len = strlen(name); in machine__write_buildid_table() 355 name_len = pos->long_name_len; in machine__write_buildid_table() 361 err = write_buildid(name, name_len, &pos->bid, machine->pid, in machine__write_buildid_table()
|
/tools/power/cpupower/utils/idle_monitor/ |
D | cpupower-monitor.h | 55 int name_len; member
|
D | hsw_ext_idle.c | 168 intel_hsw_ext_monitor.name_len = strlen(intel_hsw_ext_monitor.name); in hsw_ext_register()
|
D | snb_idle.c | 173 intel_snb_monitor.name_len = strlen(intel_snb_monitor.name); in snb_register()
|
D | nhm_idle.c | 188 intel_nhm_monitor.name_len = strlen(intel_nhm_monitor.name); in intel_nhm_register()
|
D | cpuidle_sysfs.c | 187 cpuidle_sysfs_monitor.name_len = strlen(cpuidle_sysfs_monitor.name); in cpuidle_register()
|
D | mperf_monitor.c | 352 mperf_monitor.name_len = strlen(mperf_monitor.name); in mperf_register()
|
D | amd_fam14h_idle.c | 309 amd_fam14h_monitor.name_len = strlen(amd_fam14h_monitor.name); in amd_fam14h_register()
|
/tools/testing/selftests/android/ion/ |
D | ionmap_test.c | 25 version.name_len = 4; in check_vgem()
|
/tools/testing/selftests/dmabuf-heaps/ |
D | dmabuf-heap.c | 28 version.name_len = 4; in check_vgem()
|
/tools/include/uapi/drm/ |
D | drm.h | 144 __kernel_size_t name_len; /**< Length of name buffer */ member
|
/tools/lib/bpf/ |
D | libbpf.c | 3658 __u32 len = sizeof(info), name_len; in bpf_map__reuse_fd() local 3668 name_len = strlen(info.name); in bpf_map__reuse_fd() 3669 if (name_len == BPF_OBJ_NAME_LEN - 1 && strncmp(map->name, info.name, name_len) == 0) in bpf_map__reuse_fd()
|