Searched refs:last_slash (Results 1 – 2 of 2) sorted by relevance
114 const char *last_slash; in dso__read_binary_type_filename() local120 last_slash = filename + len; in dso__read_binary_type_filename()121 while (last_slash != filename && *last_slash != '/') in dso__read_binary_type_filename()122 last_slash--; in dso__read_binary_type_filename()124 strncpy(dso_dir, filename, last_slash - filename); in dso__read_binary_type_filename()125 dso_dir[last_slash-filename] = '\0'; in dso__read_binary_type_filename()186 const char *last_slash; in dso__read_binary_type_filename() local189 last_slash = dso->long_name + dso->long_name_len; in dso__read_binary_type_filename()190 while (last_slash != dso->long_name && *last_slash != '/') in dso__read_binary_type_filename()191 last_slash--; in dso__read_binary_type_filename()[all …]
718 char *last_slash; in install_elf_bpf() local732 TEST(last_slash = strrchr(path, '/'), last_slash); in install_elf_bpf()733 strcpy(last_slash + 1, file); in install_elf_bpf()