Home
last modified time | relevance | path

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

12345678910>>...43

/Linux-v6.1/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()
45 session->evlist = evlist__new_default(); in session_write_header()
46 TEST_ASSERT_VAL("can't get evlist", session->evlist); in session_write_header()
[all …]
Ddlfilter-test.c1 // SPDX-License-Identifier: GPL-2.0
4 * by perf script with a dlfilter named dlfilter-test-api-v0.so. Also a C file
13 #include <subcmd/exec-cmd.h>
29 #include "map.h"
31 #include "synthetic-events.h"
65 int fd = td->fd; in process()
67 if (writen(fd, event, event->header.size) != event->header.size) in process()
68 return -1; in process()
88 return -1; in system_cmd()
104 return !system_cmd("gcc --version"); in have_gcc()
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
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] */
89 return -EINVAL; in _run_setup_process()
96 char path[PATH_MAX]; in populate_data_item_str() local
99 data_item->data_len = 4; in populate_data_item_str()
[all …]
/Linux-v6.1/tools/perf/util/
Dcpumap.c1 // SPDX-License-Identifier: GPL-2.0
33 return (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__test_bit()
34 ? (bit_word32 < data->mask32_data.nr) && in perf_record_cpu_map_data__test_bit()
35 (data->mask32_data.mask[bit_word32] & bit_mask32) != 0 in perf_record_cpu_map_data__test_bit()
36 : (bit_word64 < data->mask64_data.nr) && in perf_record_cpu_map_data__test_bit()
37 (data->mask64_data.mask[bit_word64] & bit_mask64) != 0; in perf_record_cpu_map_data__test_bit()
40 /* Read ith mask value from data into the given 64-bit sized bitmap */
45 if (data->mask32_data.long_size == 4) in perf_record_cpu_map_data__read_one_mask()
46 bitmap[0] = data->mask32_data.mask[i]; in perf_record_cpu_map_data__read_one_mask()
48 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>
18 #include "map.h"
20 #include "trace-event.h"
28 struct symbol *sym = al->sym; in al_to_d_al()
30 d_al->size = sizeof(*d_al); in al_to_d_al()
31 if (al->map) { in al_to_d_al()
32 struct dso *dso = al->map->dso; in al_to_d_al()
34 if (symbol_conf.show_kernel_path && dso->long_name) in al_to_d_al()
[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 …]
Dsymbol.h1 /* SPDX-License-Identifier: GPL-2.0 */
12 #include "path.h"
23 struct map;
76 /* symbols__for_each_entry - iterate over symbols (rb_root)
89 return sym->end - sym->start; in symbol__size()
100 static inline int __symbol__join_symfs(char *bf, size_t size, const char *path) in __symbol__join_symfs() argument
102 return path__join(bf, size, symbol_conf.symfs, path); in __symbol__join_symfs()
105 #define symbol__join_symfs(bf, path) __symbol__join_symfs(bf, sizeof(bf), path) argument
112 return ((void *)sym) - symbol_conf.priv_size; in symbol__priv()
124 struct map *map; member
[all …]
/Linux-v6.1/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
108 * - for object open from file, this will override setting object
109 * name from file path's base name;
110 * - for object open from memory buffer, this will specify an object
111 * name and will override default "<addr>-<buf-size>" name;
114 /* parse map definitions non-strictly, allowing extra attributes/data */
[all …]
Dlibbpf.c1 // SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
6 * Copyright (C) 2013-2015 Alexei Starovoitov <ast@kernel.org>
67 #pragma GCC diagnostic ignored "-Wformat-nonliteral"
246 if (err != -EPERM || geteuid() != 0) in pr_perm_msg()
263 pr_warn("permission error while running as root; try raising 'ulimit -l'? current value: %s\n", in pr_perm_msg()
279 fd = -1; \
290 /* as of v1.0 libbpf_set_strict_mode() is a no-op */ in libbpf_set_strict_mode()
335 /* stored as sec_def->cookie for all libbpf-supported SEC()s */
353 /* BPF program support non-linear XDP buffer */
389 * program. For the entry-point (main) BPF program, this is always
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/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 …]
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"
20 #include "rcu-string.h"
22 #include "block-group.h"
26 * This is only the first step towards a full-features scrub. It reads all
32 * - In case an unrepairable extent is encountered, track which files are
34 * - track and record media errors, throw out bad devices
[all …]
/Linux-v6.1/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()
75 err = mount_bpffs_for_pin(path); in do_pin()
[all …]
Dcommon.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */
69 static bool is_bpffs(char *path) in is_bpffs() argument
73 if (statfs(path, &st_fs) < 0) in is_bpffs()
79 /* Probe whether kernel switched from memlock-based (RLIMIT_MEMLOCK) to
80 * memcg-based memory accounting for BPF maps and programs. This was done in
81 * commit 97306be45fbe ("Merge branch 'switch to memcg-based memory
84 * Libbpf also offers to probe for memcg-based accounting vs rlimit, but does
88 * Instead, we can probe by lowering the process-based rlimit to 0, trying to
90 * memcg-based accounting is supported.
[all …]
/Linux-v6.1/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 …]
/Linux-v6.1/Documentation/filesystems/
Dautofs-mount-control.rst1 .. SPDX-License-Identifier: GPL-2.0
23 Currently autofs uses "umount -l" (lazy umount) to clear active mounts
25 needs to walk back up the mount tree to construct a path, such as
27 because the point from which the path is constructed has been detached
41 Here is a master map with direct and indirect map entries::
43 /- /etc/auto.direct
46 and the corresponding map files::
60 For the above indirect map an autofs file system is mounted on /test and
61 mounts are triggered for each sub-directory key by the inode lookup
66 each full path, such as /automount/dparse/g1, and using it as a mount
[all …]
/Linux-v6.1/tools/testing/selftests/bpf/
Dtest_offload.py7 # June 1991 as shown in the file COPYING in the top-level directory of this
35 bpf_test_dir = os.path.dirname(os.path.realpath(__file__))
50 log_level -= sub
113 stdout = stdout.decode("utf-8")
114 stderr = stderr.decode("utf-8")
119 if stderr[-1] == "\n":
120 stderr = stderr[:-1]
129 if len(stderr) > 0 and stderr[-1] == "\n":
130 stderr = stderr[:-1]
139 cmd("rm -f %s" % (f))
[all …]
/Linux-v6.1/drivers/clk/qcom/
Dcommon.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
10 #include <linux/clk-provider.h>
11 #include <linux/reset-controller.h>
15 #include "clk-rcg.h"
16 #include "clk-regmap.h"
32 if (!f->freq) in qcom_find_freq()
35 for (; f->freq; f++) in qcom_find_freq()
36 if (rate <= f->freq) in qcom_find_freq()
40 return f - 1; in qcom_find_freq()
[all …]
/Linux-v6.1/sound/soc/codecs/
Dab8500-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
8 * for ST-Ericsson.
14 * for ST-Ericsson.
29 #include <linux/mfd/abx500/ab8500-sysctrl.h>
30 #include <linux/mfd/abx500/ab8500-codec.h>
39 #include <sound/soc-dapm.h>
42 #include "ab8500-codec.h"
56 /* Nr of FIR/IIR-coeff banks in ANC-block */
114 /* Private data for AB8500 device-driver */
[all …]
/Linux-v6.1/drivers/of/
Dbase.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 1996-2005 Paul Mackerras.
66 node_name = kbasename(np->full_name); in of_node_name_eq()
67 len = strchrnul(node_name, '@') - node_name; in of_node_name_eq()
78 return strncmp(kbasename(np->full_name), prefix, strlen(prefix)) == 0; in of_node_name_prefix()
93 for (; np; np = np->parent) in of_bus_n_addr_cells()
94 if (!of_property_read_u32(np, "#address-cells", &cells)) in of_bus_n_addr_cells()
97 /* No #address-cells property for the root node */ in of_bus_n_addr_cells()
103 if (np->parent) in of_n_addr_cells()
104 np = np->parent; in of_n_addr_cells()
[all …]
/Linux-v6.1/drivers/xen/xenbus/
Dxenbus_client.c2 * Client-facing interface for the Xenbus driver. In other words, the
3 * interface between the Xenbus and the device-specific code, be it the
79 struct gnttab_map_grant_ref map[XENBUS_MAX_RING_GRANTS]; member
89 int (*map)(struct xenbus_device *dev, struct map_ring_valloc *info, member
115 * xenbus_watch_path - register a watch
117 * @path: path to watch
121 * Register a @watch on the given path, using the given xenbus_watch structure
123 * success, or -errno on error. On success, the given @path will be saved as
124 * @watch->node, and remains the caller's to free. On error, @watch->node will
128 int xenbus_watch_path(struct xenbus_device *dev, const char *path, in xenbus_watch_path() argument
[all …]
/Linux-v6.1/tools/lib/perf/tests/
Dtest-evlist.c1 // SPDX-License-Identifier: GPL-2.0
66 __T("failed to set leader", leader->leader == leader); in test_stat_cpu()
67 __T("failed to set leader", evsel->leader == leader); in test_stat_cpu()
127 __T("failed to set leader", leader->leader == leader); in test_stat_thread()
128 __T("failed to set leader", evsel->leader == leader); in test_stat_thread()
184 __T("failed to set leader", leader->leader == leader); in test_stat_thread_enable()
185 __T("failed to set leader", evsel->leader == leader); in test_stat_thread_enable()
217 struct perf_mmap *map; in test_mmap_thread() local
226 char path[PATH_MAX]; in test_mmap_thread() local
231 snprintf(path, PATH_MAX, "%s/kernel/debug/tracing/events/syscalls/sys_enter_prctl/id", in test_mmap_thread()
[all …]
/Linux-v6.1/scripts/
Ddepmod.sh2 # SPDX-License-Identifier: GPL-2.0
6 if test $# -ne 2; then
13 if ! test -r System.map ; then
14 echo "Warning: modules_install: missing 'System.map' file. Skipping depmod." >&2
18 # legacy behavior: "depmod" in /sbin, no /sbin in PATH
19 PATH="$PATH:/sbin"
20 if [ -z $(command -v $DEPMOD) ]; then
29 tmp_dir=$(mktemp -d ${TMPDIR:-/tmp}/depmod.XXXXXX)
30 mkdir -p "$tmp_dir/lib/modules/$KERNELRELEASE"
31 if "$DEPMOD" -b "$tmp_dir" $KERNELRELEASE 2>/dev/null; then
[all …]

12345678910>>...43