Home
last modified time | relevance | path

Searched +full:path +full:- +full:map (Results 1 – 25 of 1107) sorted by relevance

12345678910>>...45

/kernel/linux/linux-6.6/tools/perf/tests/
Dtopology.c1 // SPDX-License-Identifier: GPL-2.0
14 #define TEMPL "/tmp/perf-test-XXXXXX"
17 static int get_temp(char *path) in get_temp() argument
21 strcpy(path, TEMPL); in get_temp()
23 fd = mkstemp(path); in get_temp()
26 return -1; in get_temp()
33 static int session_write_header(char *path) in session_write_header() argument
37 .path = path, in session_write_header()
44 session->evlist = evlist__new_default(); in session_write_header()
45 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
[all …]
/kernel/linux/linux-5.10/tools/perf/tests/
Dtopology.c1 // SPDX-License-Identifier: GPL-2.0
13 #define TEMPL "/tmp/perf-test-XXXXXX"
16 static int get_temp(char *path) in get_temp() argument
20 strcpy(path, TEMPL); in get_temp()
22 fd = mkstemp(path); in get_temp()
25 return -1; in get_temp()
32 static int session_write_header(char *path) in session_write_header() argument
36 .path = path, in session_write_header()
43 session->evlist = perf_evlist__new_default(); in session_write_header()
44 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
[all …]
/kernel/linux/linux-5.10/fs/ext4/
Dextents.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
15 * - ext4*_error() should be used in some situations
16 * - analyze all BUG()/BUG_ON(), use -EIO where appropriate
17 * - smart tree reduction
30 #include <linux/backing-dev.h>
53 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum()
56 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh, in ext4_extent_block_csum()
66 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_verify()
70 if (et->et_checksum != ext4_extent_block_csum(inode, eh)) in ext4_extent_block_csum_verify()
[all …]
/kernel/linux/linux-5.10/tools/perf/util/
Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0
23 struct perf_cpu_map *map; in cpu_map__from_entries() local
25 map = perf_cpu_map__empty_new(cpus->nr); in cpu_map__from_entries()
26 if (map) { in cpu_map__from_entries()
29 for (i = 0; i < cpus->nr; i++) { in cpu_map__from_entries()
31 * Special treatment for -1, which is not real cpu number, in cpu_map__from_entries()
32 * and we need to use (int) -1 to initialize map[i], in cpu_map__from_entries()
35 if (cpus->cpu[i] == (u16) -1) in cpu_map__from_entries()
36 map->map[i] = -1; in cpu_map__from_entries()
38 map->map[i] = (int) cpus->cpu[i]; in cpu_map__from_entries()
[all …]
Dthread_map.c1 // SPDX-License-Identifier: GPL-2.0
25 if (dir->d_name[0] == '.') in filter()
49 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
50 threads->nr = items; in thread_map__new_by_pid()
51 refcount_set(&threads->refcnt, 1); in thread_map__new_by_pid()
67 threads->nr = 1; in thread_map__new_by_tid()
68 refcount_set(&threads->refcnt, 1); in thread_map__new_by_tid()
78 char path[NAME_MAX + 1 + 6]; in __thread_map__new_all_cpus() local
89 threads->nr = 0; in __thread_map__new_all_cpus()
90 refcount_set(&threads->refcnt, 1); in __thread_map__new_all_cpus()
[all …]
/kernel/linux/linux-6.6/fs/ext4/
Dextents.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com
15 * - ext4*_error() should be used in some situations
16 * - analyze all BUG()/BUG_ON(), use -EIO where appropriate
17 * - smart tree reduction
53 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum()
56 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh, in ext4_extent_block_csum()
66 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_verify()
70 if (et->et_checksum != ext4_extent_block_csum(inode, eh)) in ext4_extent_block_csum_verify()
80 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_set()
[all …]
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/
Dpinning.c1 // SPDX-License-Identifier: GPL-2.0
12 struct bpf_map *map; in get_map_id() local
17 map = bpf_object__find_map_by_name(obj, name); in get_map_id()
18 if (CHECK(!map, "find map", "NULL map")) in get_map_id()
21 err = bpf_map_get_info_by_fd(bpf_map__fd(map), in get_map_id()
23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id()
39 struct bpf_map *map; in test_pinning() local
45 /* check that opening fails with invalid pinning value in map def */ in test_pinning()
48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning()
98 /* check that same map ID was reused for second load */ in test_pinning()
[all …]
Dverify_pkcs7_sig.c1 // SPDX-License-Identifier: GPL-2.0
29 /* In stripped ARM and x86-64 modules, ~ is surprisingly rare. */
37 * - Signer's name
38 * - Key identifier
39 * - Signature data
40 * - Information block
43 __u8 algo; /* Public-key crypto algorithm [0] */
92 return -EINVAL; in _run_setup_process()
99 char path[PATH_MAX]; in populate_data_item_str() local
102 data_item->data_len = 4; in populate_data_item_str()
[all …]
/kernel/linux/linux-6.6/tools/perf/util/
Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0
34 return (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__test_bit()
35 ? (bit_word32 < data->mask32_data.nr) && in perf_record_cpu_map_data__test_bit()
36 (data->mask32_data.mask[bit_word32] & bit_mask32) != 0 in perf_record_cpu_map_data__test_bit()
37 : (bit_word64 < data->mask64_data.nr) && in perf_record_cpu_map_data__test_bit()
38 (data->mask64_data.mask[bit_word64] & bit_mask64) != 0; in perf_record_cpu_map_data__test_bit()
41 /* Read ith mask value from data into the given 64-bit sized bitmap */
46 if (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__read_one_mask()
47 bitmap[0] = data->mask32_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
49 bitmap[0] = data->mask64_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
[all …]
Ddlfilter.c1 // SPDX-License-Identifier: GPL-2.0
3 * dlfilter.c: Interface to perf script --dlfilter shared object
10 #include <subcmd/exec-cmd.h>
20 #include "map.h"
22 #include "trace-event.h"
30 struct symbol *sym = al->sym; in al_to_d_al()
32 d_al->size = sizeof(*d_al); in al_to_d_al()
33 if (al->map) { in al_to_d_al()
34 struct dso *dso = map__dso(al->map); in al_to_d_al()
36 if (symbol_conf.show_kernel_path && dso->long_name) in al_to_d_al()
[all …]
Dthread_map.c1 // SPDX-License-Identifier: GPL-2.0
26 if (dir->d_name[0] == '.') in filter()
50 perf_thread_map__set_pid(threads, i, atoi(namelist[i]->d_name)); in thread_map__new_by_pid()
51 threads->nr = items; in thread_map__new_by_pid()
52 refcount_set(&threads->refcnt, 1); in thread_map__new_by_pid()
68 threads->nr = 1; in thread_map__new_by_tid()
69 refcount_set(&threads->refcnt, 1); in thread_map__new_by_tid()
79 char path[NAME_MAX + 1 + 6]; in __thread_map__new_all_cpus() local
90 threads->nr = 0; in __thread_map__new_all_cpus()
91 refcount_set(&threads->refcnt, 1); in __thread_map__new_all_cpus()
[all …]
/kernel/linux/linux-6.6/tools/lib/bpf/
Dlibbpf.h1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
73 * @brief **libbpf_bpf_map_type_str()** converts the provided map type value
75 * @param t The map type.
76 * @return Pointer to a static string identifying the map type. NULL is
100 * @brief **libbpf_set_print()** sets user-provided log callback function to
105 * This function is thread-safe.
116 * - for object open from file, this will override setting object
117 * name from file path's base name;
118 * - for object open from memory buffer, this will specify an object
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dpinning.c1 // SPDX-License-Identifier: GPL-2.0
12 struct bpf_map *map; in get_map_id() local
17 map = bpf_object__find_map_by_name(obj, name); in get_map_id()
18 if (CHECK(!map, "find map", "NULL map")) in get_map_id()
21 err = bpf_obj_get_info_by_fd(bpf_map__fd(map), in get_map_id()
23 CHECK(err, "get map info", "err %d errno %d", err, errno); in get_map_id()
39 struct bpf_map *map; in test_pinning() local
45 /* check that opening fails with invalid pinning value in map def */ in test_pinning()
48 if (CHECK(err != -EINVAL, "invalid open", "err %d errno %d\n", err, errno)) { in test_pinning()
98 /* check that same map ID was reused for second load */ in test_pinning()
[all …]
/kernel/linux/linux-5.10/tools/lib/bpf/
Dlibbpf.h1 /* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
72 * - for object open from file, this will override setting object
73 * name from file path's base name;
74 * - for object open from memory buffer, this will specify an object
75 * name and will override default "<addr>-<buf-size>" name;
78 /* parse map definitions non-strictly, allowing extra attributes/data */
80 /* DEPRECATED: handle CO-RE relocations non-strictly, allowing failures.
81 * Value is ignored. Relocations always are processed non-strictly.
82 * Non-relocatable instructions are replaced with invalid ones to
[all …]
Dlibbpf.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
71 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
116 if (err != -EPERM || geteuid() != 0) in pr_perm_msg()
133 pr_warn("permission error while running as root; try raising 'ulimit -l'? current value: %s\n", in pr_perm_msg()
149 fd = -1; \
159 /* v4.14: kernel support for program & map names. */
235 * program. For the entry-point (main) BPF program, this is always
236 * zero. For a sub-program, this gets reset before each of main BPF
238 * whether sub-program was already appended to the main program, and
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dvolumes.c1 // SPDX-License-Identifier: GPL-2.0
21 #include "disk-io.h"
23 #include "print-tree.h"
26 #include "async-thread.h"
27 #include "check-integrity.h"
28 #include "rcu-string.h"
29 #include "dev-replace.h"
31 #include "tree-checker.h"
32 #include "space-info.h"
33 #include "block-group.h"
[all …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/Documentation/
Dbpftool-iter.rst2 bpftool-iter
4 -------------------------------------------------------------------------------
6 -------------------------------------------------------------------------------
20 | **bpftool** **iter pin** *OBJ* *PATH* [**map** *MAP*]
24 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* }
28 **bpftool iter pin** *OBJ* *PATH* [**map** *MAP*]
36 and pin it to *PATH*. The *PATH* should be located
41 Map element bpf iterator requires an additional parameter
42 *MAP* so bpf program can iterate over map elements for
43 that map. User can have a bpf program in kernel to run
[all …]
/kernel/linux/linux-6.6/fs/btrfs/
Dvolumes.c1 // SPDX-License-Identifier: GPL-2.0
18 #include "disk-io.h"
20 #include "print-tree.h"
23 #include "rcu-string.h"
24 #include "dev-replace.h"
26 #include "tree-checker.h"
27 #include "space-info.h"
28 #include "block-group.h"
33 #include "uuid-tree.h"
217 size_bp -= ret; \ in btrfs_describe_block_groups()
[all …]
Dscrub.c1 // SPDX-License-Identifier: GPL-2.0
13 #include "disk-io.h"
14 #include "ordered-data.h"
18 #include "dev-replace.h"
19 #include "check-integrity.h"
21 #include "block-group.h"
25 #include "file-item.h"
29 * This is only the first step towards a full-features scrub. It reads all
35 * - In case an unrepairable extent is encountered, track which files are
37 * - track and record media errors, throw out bad devices
[all …]
/kernel/linux/linux-6.6/tools/bpf/bpftool/Documentation/
Dbpftool-iter.rst1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 bpftool-iter
6 -------------------------------------------------------------------------------
8 -------------------------------------------------------------------------------
26 | **bpftool** **iter pin** *OBJ* *PATH* [**map** *MAP*]
30 | *MAP* := { **id** *MAP_ID* | **pinned** *FILE* }
34 **bpftool iter pin** *OBJ* *PATH* [**map** *MAP*]
42 and pin it to *PATH*. The *PATH* should be located
47 Map element bpf iterator requires an additional parameter
48 *MAP* so bpf program can iterate over map elements for
[all …]
/kernel/linux/linux-5.10/tools/bpf/bpftool/
Diter.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
15 const char *objfile, *path; in do_pin() local
19 int err = -1, map_fd = -1; in do_pin()
25 path = GET_ARG(); in do_pin()
29 if (is_prefix(*argv, "map")) { in do_pin()
33 p_err("incorrect map spec"); in do_pin()
34 return -1; in do_pin()
39 return -1; in do_pin()
42 linfo.map.map_fd = map_fd; in do_pin()
74 err = mount_bpffs_for_pin(path); in do_pin()
[all …]
/kernel/linux/linux-6.6/tools/bpf/bpftool/
Diter.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
18 const char *objfile, *path; in do_pin() local
22 int err = -1, map_fd = -1; in do_pin()
28 path = GET_ARG(); in do_pin()
32 if (is_prefix(*argv, "map")) { in do_pin()
36 p_err("incorrect map spec"); in do_pin()
37 return -1; in do_pin()
42 return -1; in do_pin()
45 linfo.map.map_fd = map_fd; in do_pin()
53 err = -errno; in do_pin()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/boot/
Dinstall.sh14 # $1 - kernel version
15 # $2 - kernel image file
16 # $3 - kernel map file
17 # $4 - default install path (blank if root directory)
18 # $5 and more - kernel boot files; zImage*, uImage, cuImage.*, etc.
22 set -e
26 if [ -x ~/bin/${INSTALLKERNEL} ]; then exec ~/bin/${INSTALLKERNEL} "$@"; fi
27 if [ -x /sbin/${INSTALLKERNEL} ]; then exec /sbin/${INSTALLKERNEL} "$@"; fi
34 if [ -f $4/$image_name ]; then
38 if [ -f $4/System.map ]; then
[all …]
/kernel/linux/linux-6.6/kernel/bpf/
Dinode.c1 // SPDX-License-Identifier: GPL-2.0-only
92 return ERR_PTR(-EINVAL); in bpf_fd_probe_obj()
113 return ERR_PTR(-EINVAL); in bpf_get_inode()
118 return ERR_PTR(-ENOSPC); in bpf_get_inode()
120 inode->i_ino = get_next_ino(); in bpf_get_inode()
121 inode->i_atime = inode_set_ctime_current(inode); in bpf_get_inode()
122 inode->i_mtime = inode->i_atime; in bpf_get_inode()
132 if (inode->i_op == &bpf_prog_iops) in bpf_inode_type()
134 else if (inode->i_op == &bpf_map_iops) in bpf_inode_type()
136 else if (inode->i_op == &bpf_link_iops) in bpf_inode_type()
[all …]
/kernel/linux/linux-5.10/kernel/bpf/
Dinode.c1 // SPDX-License-Identifier: GPL-2.0-only
92 return ERR_PTR(-EINVAL); in bpf_fd_probe_obj()
113 return ERR_PTR(-EINVAL); in bpf_get_inode()
118 return ERR_PTR(-ENOSPC); in bpf_get_inode()
120 inode->i_ino = get_next_ino(); in bpf_get_inode()
121 inode->i_atime = current_time(inode); in bpf_get_inode()
122 inode->i_mtime = inode->i_atime; in bpf_get_inode()
123 inode->i_ctime = inode->i_atime; in bpf_get_inode()
133 if (inode->i_op == &bpf_prog_iops) in bpf_inode_type()
135 else if (inode->i_op == &bpf_map_iops) in bpf_inode_type()
[all …]

12345678910>>...45