| /linux/tools/iio/ |
| H A D | iio_utils.c | 95 char *scan_el_dir, *builtname, *builtname_generic, *filename = 0; in iioutils_get_type() local 125 ret = asprintf(&filename, in iioutils_get_type() 132 sysfsfp = fopen(filename, "r"); in iioutils_get_type() 136 filename); in iioutils_get_type() 169 filename); in iioutils_get_type() 174 free(filename); in iioutils_get_type() 175 filename = 0; in iioutils_get_type() 191 if (filename) in iioutils_get_type() 192 free(filename); in iioutils_get_type() 226 char *filename in iioutils_get_param_float() local 325 char *filename; build_channel_array() local 568 char *filename; find_type_by_name() local 652 _write_sysfs_int(const char * filename,const char * basedir,int val,int verify) _write_sysfs_int() argument 729 write_sysfs_int(const char * filename,const char * basedir,int val) write_sysfs_int() argument 743 write_sysfs_int_and_verify(const char * filename,const char * basedir,int val) write_sysfs_int_and_verify() argument 749 _write_sysfs_string(const char * filename,const char * basedir,const char * val,int verify) _write_sysfs_string() argument 829 write_sysfs_string_and_verify(const char * filename,const char * basedir,const char * val) write_sysfs_string_and_verify() argument 843 write_sysfs_string(const char * filename,const char * basedir,const char * val) write_sysfs_string() argument 857 read_sysfs_posint(const char * filename,const char * basedir) read_sysfs_posint() argument 904 read_sysfs_float(const char * filename,const char * basedir,float * val) read_sysfs_float() argument 951 read_sysfs_string(const char * filename,const char * basedir,char * str) read_sysfs_string() argument [all...] |
| H A D | iio_utils.h | 68 int write_sysfs_int(const char *filename, const char *basedir, int val); 69 int write_sysfs_int_and_verify(const char *filename, const char *basedir, 71 int write_sysfs_string_and_verify(const char *filename, const char *basedir, 73 int write_sysfs_string(const char *filename, const char *basedir, 75 int read_sysfs_posint(const char *filename, const char *basedir); 76 int read_sysfs_float(const char *filename, const char *basedir, float *val); 77 int read_sysfs_string(const char *filename, const char *basedir, char *str);
|
| /linux/tools/power/acpi/tools/acpidump/ |
| H A D | apfiles.c | 20 * PARAMETERS: pathname - Output filename 56 * PARAMETERS: pathname - Output filename 100 * filename from the table signature. 106 char filename[ACPI_NAMESEG_SIZE + 16]; in ap_write_to_binary_file() local 116 /* Construct lower-case filename from the table local signature */ in ap_write_to_binary_file() 119 ACPI_COPY_NAMESEG(filename, ACPI_RSDP_NAME); in ap_write_to_binary_file() 121 ACPI_COPY_NAMESEG(filename, table->signature); in ap_write_to_binary_file() 124 filename[0] = (char)tolower((int)filename[0]); in ap_write_to_binary_file() 125 filename[ in ap_write_to_binary_file() [all...] |
| /linux/security/tomoyo/ |
| H A D | util.c | 146 static bool tomoyo_correct_path2(const char *filename, const size_t len); 250 char *filename; in tomoyo_parse_name_union() local 257 filename = tomoyo_read_token(param); in tomoyo_parse_name_union() 258 if (!tomoyo_correct_word(filename)) in tomoyo_parse_name_union() 260 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union() 261 return ptr->filename != NULL; in tomoyo_parse_name_union() 531 static bool tomoyo_correct_path2(const char *filename, const size_t len) in tomoyo_correct_path2() argument 533 const char *cp1 = memchr(filename, '/', len); in tomoyo_correct_path2() 534 const char *cp2 = memchr(filename, '.', len); in tomoyo_correct_path2() 536 return cp1 && (!cp2 || (cp1 < cp2)) && tomoyo_correct_word2(filename, len); in tomoyo_correct_path2() [all …]
|
| /linux/tools/net/sunrpc/xdrgen/generators/ |
| H A D | header_top.py | 22 def emit_declaration(self, filename: str, root: Specification) -> None: 27 infix=header_guard_infix(filename), 28 filename=filename, 29 mtime=time.ctime(os.path.getmtime(filename)), 33 def emit_definition(self, filename: str, root: Specification) -> None: 38 infix=header_guard_infix(filename), 39 filename=filename, 40 mtime=time.ctime(os.path.getmtime(filename)), 44 def emit_source(self, filename: str, root: Specification) -> None:
|
| /linux/arch/xtensa/platforms/iss/ |
| H A D | simdisk.c | 29 const char *filename; member 44 static const char *filename[MAX_SIMDISK_COUNT] = { variable 56 if (n_files < ARRAY_SIZE(filename)) in simdisk_param_set_filename() 57 filename[n_files++] = val; in simdisk_param_set_filename() 66 module_param_cb(filename, &simdisk_param_ops_filename, &n_files, 0); 67 MODULE_PARM_DESC(filename, "Backing storage filename."); 152 static int simdisk_attach(struct simdisk *dev, const char *filename) in simdisk_attach() argument 156 filename = kstrdup(filename, GFP_KERNEL); in simdisk_attach() 157 if (filename == NULL) in simdisk_attach() 166 dev->fd = simc_open(filename, O_RDWR, 0); in simdisk_attach() [all …]
|
| /linux/security/integrity/ima/ |
| H A D | ima_api.c | 106 const unsigned char *filename, int pcr) in ima_store_template() argument 124 result = ima_add_template_entry(entry, violation, op, inode, filename); in ima_store_template() 135 void ima_add_violation(struct file *file, const unsigned char *filename, in ima_add_violation() argument 143 .filename = filename, in ima_add_violation() 157 filename, CONFIG_IMA_MEASURE_PCR_IDX); in ima_add_violation() 161 integrity_audit_msg(AUDIT_INTEGRITY_PCR, inode, filename, in ima_add_violation() 253 struct name_snapshot filename; in ima_collect_measurement() local 329 take_dentry_name_snapshot(&filename, file->f_path.dentry); in ima_collect_measurement() 332 filename in ima_collect_measurement() 351 ima_store_measurement(struct ima_iint_cache * iint,struct file * file,const unsigned char * filename,struct evm_ima_xattr_data * xattr_value,int xattr_len,const struct modsig * modsig,int pcr,struct ima_template_desc * template_desc) ima_store_measurement() argument 395 ima_audit_measurement(struct ima_iint_cache * iint,const unsigned char * filename) ima_audit_measurement() argument 443 struct name_snapshot filename; ima_d_path() local [all...] |
| /linux/usr/include/ |
| H A D | headers_check.pl | 30 my $filename; 33 $filename = $file; 35 open(my $fh, '<', $filename) 36 or die "$filename: $!\n"; 55 printf STDERR "$filename:$lineno: included file '$inc' is not exported\n"; 72 printf STDERR "$filename:$lineno: " . 82 if ($filename =~ /types.h|int-l64.h|int-ll64.h/o) { 92 printf STDERR "$filename:$lineno: " .
|
| /linux/tools/perf/tests/ |
| H A D | symbols.c | 74 static void get_test_dso_filename(char *filename, size_t max_sz) in get_test_dso_filename() argument 77 strlcpy(filename, dso_to_test, max_sz); in get_test_dso_filename() 79 perf_exe(filename, max_sz); in get_test_dso_filename() 82 static int create_map(struct test_info *ti, char *filename, struct map **map_p) in create_map() argument 84 struct dso *dso = machine__findnew_dso(ti->machine, filename); in create_map() 87 * If 'filename' matches a current kernel module, must use a kernel in create_map() 95 filename); in create_map() 106 PROT_EXEC, /*flags=*/0, filename, ti->thread); in create_map() 170 static int test_file(struct test_info *ti, char *filename) in test_file() argument 176 pr_debug("Testing %s\n", filename); in test_file() 209 char filename[PATH_MAX]; test__symbols() local [all...] |
| /linux/tools/testing/selftests/kvm/lib/ |
| H A D | elf.c | 15 static void elfhdr_get(const char *filename, Elf64_Ehdr *hdrp) in elfhdr_get() argument 21 fd = open(filename, O_RDONLY); in elfhdr_get() 24 " rv: %i errno: %i", filename, fd, errno); in elfhdr_get() 41 filename, in elfhdr_get() 49 filename, in elfhdr_get() 72 filename, ident[EI_VERSION], EV_CURRENT); in elfhdr_get() 114 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename) in kvm_vm_elf_load() argument 121 fd = open(filename, O_RDONLY); in kvm_vm_elf_load() 124 " rv: %i errno: %i", filename, fd, errno); in kvm_vm_elf_load() 127 elfhdr_get(filename, &hdr); in kvm_vm_elf_load() [all …]
|
| /linux/tools/perf/ |
| H A D | builtin-buildid-cache.c | 118 static int build_id_cache__add_kcore(const char *filename, bool force) in build_id_cache__add_kcore() argument 124 strlcpy(from_dir, filename, sizeof(from_dir)); in build_id_cache__add_kcore() 175 static int build_id_cache__add_file(const char *filename, struct nsinfo *nsi) in build_id_cache__add_file() argument 183 err = filename__read_build_id(filename, &bid); in build_id_cache__add_file() 186 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__add_file() 191 err = build_id_cache__add_s(sbuild_id, filename, nsi, in build_id_cache__add_file() 193 pr_debug("Adding %s %s: %s\n", sbuild_id, filename, in build_id_cache__add_file() 198 static int build_id_cache__remove_file(const char *filename, struct nsinfo *nsi) in build_id_cache__remove_file() argument 207 err = filename__read_build_id(filename, &bid); in build_id_cache__remove_file() 210 pr_debug("Couldn't read a build-id in %s\n", filename); in build_id_cache__remove_file() [all …]
|
| /linux/scripts/ |
| H A D | checkincludes.pl | 60 foreach my $filename (keys %includedfiles) { 61 if ($includedfiles{$filename} > 1) { 62 print "$file: $filename is included more than once.\n"; 75 foreach my $filename (keys %includedfiles) { 76 if ($1 eq $filename) { 77 if ($includedfiles{$filename} > 1) { 78 $includedfiles{$filename}--;
|
| H A D | headerdep.pl | 63 my $filename = shift; 66 my $stripped = $filename; 69 return $stripped if $stripped ne $filename; 72 return $filename; 77 my $filename = shift; 78 return $filename if -f $filename; 81 my $path = "$i/$filename";
|
| /linux/drivers/accessibility/speakup/ |
| H A D | utils.h | 30 char filename[256]; variable 35 snprintf(filename, sizeof(filename), "%s/%s", dir_name, name); in open_input() 37 snprintf(filename, sizeof(filename), "%s", name); in open_input() 38 infile = fopen(filename, "r"); in open_input() 40 fprintf(stderr, "can't open %s\n", filename); in open_input() 50 fprintf(stderr, "error: file %s line %d\n", filename, lc); in oops()
|
| /linux/tools/testing/selftests/splice/ |
| H A D | short_splice_read.sh | 73 filename="$1" 78 out=$("$DIR"/splice_read "$filename" "$bytes" | cat) 90 filename="$1" 92 echo " checking $filename ..." >&2 94 full=$(cat "$filename") 104 if ! do_splice "$filename" 4096 "$full" "full read" ; then 110 if ! do_splice "$filename" 2 "$two" "'$two'" ; then
|
| /linux/tools/testing/selftests/mount/ |
| H A D | nosymfollow-test.c | 40 static void vmaybe_write_file(bool enoent_ok, char *filename, char *fmt, in vmaybe_write_file() argument 55 fd = open(filename, O_WRONLY); in vmaybe_write_file() 59 die("open of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file() 65 die("short write to %s\n", filename); in vmaybe_write_file() 68 filename, strerror(errno)); in vmaybe_write_file() 73 die("close of %s failed: %s\n", filename, strerror(errno)); in vmaybe_write_file() 76 static void maybe_write_file(char *filename, char *fmt, ...) in maybe_write_file() argument 81 vmaybe_write_file(true, filename, fmt, ap); in maybe_write_file() 85 static void write_file(char *filename, char *fmt, ...) in write_file() argument 90 vmaybe_write_file(false, filename, fmt, ap); in write_file()
|
| /linux/Documentation/trace/ |
| H A D | eprobetrace.rst | 179 # echo 'e:openat raw_syscalls.sys_enter nr=$id filename=+8($args):ustring' >> dynamic_events 205 cat-1298 [003] ...2. 2060.875970: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 206 cat-1298 [003] ...2. 2060.876197: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 207 cat-1298 [003] ...2. 2060.879126: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 208 cat-1298 [003] ...2. 2060.879639: openat: (raw_syscalls.sys_enter) nr=0x101 filename=(fault) 210 The filename shows "(fault)". This is likely because the filename has not been 215 To get around this, as the kernel will likely pull in this filename and make 217 filename from the entry of the event to the end of the event, this can be used 218 to show the filename whe [all...] |
| /linux/tools/testing/selftests/resctrl/ |
| H A D | cache.c | 90 * @filename: file that stores the results in get_llc_occu_resctrl() 97 static int print_results_cache(const char *filename, pid_t bm_pid, __u64 llc_value) 101 if (strcmp(filename, "stdio") == 0 || strcmp(filename, "stderr") == 0) { 104 fp = fopen(filename, "a"); in print_results_cache() argument 119 * @filename: Filename for writing the results in print_results_cache() 123 * @filename. @bm_pid is written to the results file along with the measured 128 int perf_event_measure(int pe_fd, const char *filename, pid_t bm_pid) 144 return print_results_cache(filename, bm_pid, value); in perf_event_measure() 149 * @filename in perf_event_measure() 136 perf_event_measure(int pe_fd,struct perf_event_read * pe_read,const char * filename,pid_t bm_pid) perf_event_measure() argument 164 measure_llc_resctrl(const char * filename,pid_t bm_pid) measure_llc_resctrl() argument [all...] |
| /linux/tools/perf/util/ |
| H A D | build-id.c | 521 char *realname = NULL, *filename; in build_id_cache__cachedir() 527 if (asprintf(&filename, "%s%s%s%s%s", buildid_dir, slash ? "/" : "", in build_id_cache__cachedir() 530 filename = NULL; in build_id_cache__cachedir() 533 return filename; in build_id_cache__list_build_ids() 641 char *filename = NULL, *dir_name = NULL, *linkname = zalloc(size), *tmp; in build_id_cache__add() 662 if (asprintf(&filename, "%s/%s", dir_name, in build_id_cache__add() 665 filename = NULL; in build_id_cache__add() 669 if (access(filename, F_OK)) { in build_id_cache__add() 671 if (copyfile("/proc/kallsyms", filename)) in build_id_cache__add() 674 if (copyfile_ns(name, filename, ns in build_id_cache__add() 518 char *realname = NULL, *filename; build_id_cache__cachedir() local 638 char *filename = NULL, *dir_name = NULL, *linkname = zalloc(size), *tmp; build_id_cache__add() local 796 char *filename = build_id_cache__linkname(sbuild_id, NULL, 0); build_id_cache__cached() local 808 char *filename = zalloc(size), build_id_cache__remove_s() local 843 filename__read_build_id_ns(const char * filename,struct build_id * bid,struct nsinfo * nsi) filename__read_build_id_ns() argument [all...] |
| H A D | libbfd.c | 33 const char *filename; member 156 &a2l->filename, &a2l->funcname, in find_address_in_section() 159 if (a2l->filename && !strlen(a2l->filename)) in find_address_in_section() 160 a2l->filename = NULL; in find_address_in_section() 216 if (a2l->filename) in inline_list__append_dso_a2l() 217 srcline = srcline_from_fileline(a2l->filename, a2l->line); in inline_list__append_dso_a2l() 255 while (bfd_find_inliner_info(a2l->abfd, &a2l->filename, in libbfd__addr2line() 259 if (a2l->filename && !strlen(a2l->filename)) in libbfd__addr2line() 421 libbfd__read_build_id(const char * filename,struct build_id * bid) libbfd__read_build_id() argument 460 libbfd_filename__read_debuglink(const char * filename,char * debuglink,size_t size) libbfd_filename__read_debuglink() argument [all...] |
| H A D | addr2line.c | 21 static int filename_split(char *filename, unsigned int *line_nr) 25 sep = strchr(filename, '\n'); in filename_split() 29 if (!strcmp(filename, "??:0")) in filename_split() 32 sep = strchr(filename, ':'); in filename_split() 38 pr_debug("addr2line missing ':' in filename split\n"); in filename_split() 154 char **filename, in read_addr2line_record() 171 if (filename != NULL) in read_addr2line_record() 172 zfree(filename); in read_addr2line_record() 216 * the function and filename lines. in read_addr2line_record() 240 /* Read the third filename an in read_addr2line_record() 24 filename_split(char * filename,unsigned int * line_nr) filename_split() argument 157 read_addr2line_record(struct io * io,enum cmd_a2l_style style,const char * dso_name,u64 addr,bool first,char ** function,char ** filename,unsigned int * line_nr) read_addr2line_record() argument 275 inline_list__append_record(struct dso * dso,struct inline_node * node,struct symbol * sym,const char * function,const char * filename,unsigned int line_nr) inline_list__append_record() argument [all...] |
| /linux/tools/testing/selftests/alsa/ |
| H A D | conf.c | 101 conf->filename, card); in conf_data_by_card() 121 snd_config_t *conf_load_from_file(const char *filename) in conf_load_from_file() argument 127 err = snd_input_stdio_open(&input, filename, "r"); in conf_load_from_file() 129 ksft_exit_fail_msg("Unable to parse filename %s\n", filename); in conf_load_from_file() 136 ksft_exit_fail_msg("Unable to parse filename %s\n", filename); in conf_load_from_file() 268 static bool match_config(const char *filename) in match_config() argument 274 config = conf_load_from_file(filename); in match_config() 277 ksft_exit_fail_msg("Missing global sysfs block in filename %s\n", filename); in match_config() 280 ksft_exit_fail_msg("Missing global card block in filename %s\n", filename); in match_config() 287 ksft_exit_fail_msg("Missing card sysfs block in filename %s\n", filename); in match_config() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_bpftool_synctypes.py | 124 self.reader = open(self.filename, 'r') 304 filename = os.path.join(BPFTOOL_DIR, 'main.h') variable in MainHeaderFileExtractor 330 filename = os.path.join(BPFTOOL_DOC_DIR, 'substitutions.rst') variable in ManSubstitutionsExtractor 353 filename = os.path.join(BPFTOOL_DIR, 'prog.c') variable in ProgFileExtractor 366 filename = os.path.join(BPFTOOL_DIR, 'map.c') variable in MapFileExtractor 375 filename = os.path.join(BPFTOOL_DIR, 'cgroup.c') variable in CgroupFileExtractor 384 filename = "" variable in GenericSourceExtractor 386 def __init__(self, filename): argument 387 self.filename = os.path.join(BPFTOOL_DIR, filename) 394 filename = os.path.join(INCLUDE_DIR, 'uapi/linux/bpf.h') variable in BpfHeaderExtractor [all …]
|
| /linux/drivers/firmware/tegra/ |
| H A D | bpmp-debugfs.c | 71 /* map filename in Linux debugfs to corresponding entry in BPMP */ in get_filename() 75 const char *root_path, *filename = NULL; in get_filename() 91 filename = dentry_path(file->f_path.dentry, buf, size); in get_filename() 92 if (IS_ERR(filename)) { in get_filename() 93 filename = NULL; in get_filename() 97 if (strlen(filename) < root_len || strncmp(filename, root_path, root_len)) { in get_filename() 98 filename = NULL; in get_filename() 102 filename += root_len; in get_filename() 106 return filename; 73 const char *root_path, *filename = NULL; get_filename() local 307 const char *filename; bpmp_debug_show() local 373 const char *filename; bpmp_debug_store() local 592 const char *filename; debugfs_show() local 643 const char *filename; debugfs_store() local [all...] |
| /linux/tools/usb/ |
| H A D | ffs-test.c | 344 const char *const filename; member 384 t->fd = open(t->filename, O_RDWR); in init_thread() 385 die_on(t->fd < 0, "%s", t->filename); in init_thread() 404 err("%s: get fifo status", t->filename); in cleanup_thread() 406 warn("%s: unclaimed = %d\n", t->filename, ret); in cleanup_thread() 408 err("%s: fifo flush", t->filename); in cleanup_thread() 413 err("%s: close", t->filename); in cleanup_thread() 425 info("%s: starts\n", t->filename); in start_thread_helper() 426 in_name = t->in_name ? t->in_name : t->filename; in start_thread_helper() 427 out_name = t->out_name ? t->out_name : t->filename; in start_thread_helper() [all …]
|