| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_tunnel_kern.c | 52 __type(key, __u32); 60 struct bpf_tunnel_key key; in gre_set_tunnel() 62 __builtin_memset(&key, 0x0, sizeof(key)); in gre_set_tunnel() 63 key.remote_ipv4 = 0xac100164; /* 172.16.1.100 */ in gre_set_tunnel() 64 key.tunnel_id = 2; in gre_set_tunnel() 65 key.tunnel_tos = 0; in gre_set_tunnel() 66 key.tunnel_ttl = 64; in gre_set_tunnel() 68 ret = bpf_skb_set_tunnel_key(skb, &key, sizeof(key), in gre_set_tunnel() 61 struct bpf_tunnel_key key; gre_set_tunnel() local 83 struct bpf_tunnel_key key; gre_set_tunnel_no_key() local 104 struct bpf_tunnel_key key; gre_get_tunnel() local 119 struct bpf_tunnel_key key; ip6gretap_set_tunnel() local 143 struct bpf_tunnel_key key; ip6gretap_get_tunnel() local 162 struct bpf_tunnel_key key; erspan_set_tunnel() local 205 struct bpf_tunnel_key key; erspan_get_tunnel() local 241 struct bpf_tunnel_key key; ip4ip6erspan_set_tunnel() local 285 struct bpf_tunnel_key key; ip4ip6erspan_get_tunnel() local 322 struct bpf_tunnel_key key; vxlan_set_tunnel_dst() local 361 struct bpf_tunnel_key key; vxlan_set_tunnel_src() local 401 struct bpf_tunnel_key key; vxlan_get_tunnel_src() local 487 struct bpf_tunnel_key key; ip6vxlan_set_tunnel_dst() local 518 struct bpf_tunnel_key key; ip6vxlan_set_tunnel_src() local 549 struct bpf_tunnel_key key; ip6vxlan_get_tunnel_src() local 591 struct bpf_tunnel_key key; geneve_set_tunnel() local 630 struct bpf_tunnel_key key; geneve_get_tunnel() local 651 struct bpf_tunnel_key key; ip6geneve_set_tunnel() local 690 struct bpf_tunnel_key key; ip6geneve_get_tunnel() local 714 struct bpf_tunnel_key key = {}; ipip_set_tunnel() local 744 struct bpf_tunnel_key key; ipip_get_tunnel() local 759 struct bpf_tunnel_key key = {}; ipip_gue_set_tunnel() local 798 struct bpf_tunnel_key key = {}; ipip_fou_set_tunnel() local 837 struct bpf_tunnel_key key = {}; ipip_encap_get_tunnel() local 864 struct bpf_tunnel_key key = {}; ipip6_set_tunnel() local 896 struct bpf_tunnel_key key; ipip6_get_tunnel() local 913 struct bpf_tunnel_key key = {}; ip6ip6_set_tunnel() local 944 struct bpf_tunnel_key key; ip6ip6_get_tunnel() local [all...] |
| H A D | wq.c | 22 __type(key, int); 30 __type(key, int); 42 __type(key, int); 49 __type(key, int); 56 static int test_elem_callback(void *map, int *key, in test_elem_callback() argument 57 int (callback_fn)(void *map, int *key, void *value)) in test_elem_callback() 62 if ((ok & (1 << *key) || in test_elem_callback() 63 (ok_sleepable & (1 << *key)))) in test_elem_callback() 67 bpf_map_update_elem(map, key, &init, 0)) in test_elem_callback() 70 val = bpf_map_lookup_elem(map, key); in test_elem_callback() 89 test_hmap_elem_callback(void * map,int * key,int (callback_fn)(void * map,int * key,void * value)) test_hmap_elem_callback() argument 120 wq_callback(void * map,int * key,void * value) wq_callback() argument 128 wq_cb_sleepable(void * map,int * key,void * value) wq_cb_sleepable() argument 146 int key = 0; test_call_array_sleepable() local 156 int key = 1; test_syscall_array_sleepable() local 166 int key = 2; test_call_hash_sleepable() local 176 int key = 3; test_call_hash_malloc_sleepable() local 186 int key = 4; test_call_lru_sleepable() local [all...] |
| /linux/security/keys/ |
| H A D | key.c | 2 /* Basic authentication token and access key management 26 unsigned int key_quota_root_maxkeys = 1000000; /* root's key count quota */ 27 unsigned int key_quota_root_maxbytes = 25000000; /* root's key space quota */ 28 unsigned int key_quota_maxkeys = 200; /* general key count quota */ 29 unsigned int key_quota_maxbytes = 20000; /* general key space quota */ 34 /* We serialise key instantiation and link */ 38 void __key_check(const struct key *key) in __key_check() argument 40 printk("__key_check: key %p {%08x} should be {%08x}\n", in __key_check() 41 key, ke in __key_check() 133 key_alloc_serial(struct key * key) key_alloc_serial() argument 230 struct key *key; key_alloc() local 374 key_payload_reserve(struct key * key,size_t datalen) key_payload_reserve() argument 412 mark_key_instantiated(struct key * key,int reject_error) mark_key_instantiated() argument 427 __key_instantiate_and_link(struct key * key,struct key_preparsed_payload * prep,struct key * keyring,struct key * authkey,struct assoc_array_edit ** _edit) __key_instantiate_and_link() argument 499 key_instantiate_and_link(struct key * key,const void * data,size_t datalen,struct key * keyring,struct key * authkey) key_instantiate_and_link() argument 575 key_reject_and_link(struct key * key,unsigned timeout,unsigned error,struct key * keyring,struct key * authkey) key_reject_and_link() argument 647 key_put(struct key * key) key_put() argument 676 struct key *key; key_lookup() local 736 key_set_timeout(struct key * key,unsigned timeout) key_set_timeout() argument 768 struct key *key = key_ref_to_ptr(key_ref); __key_update() local 821 struct key *keyring, *key = NULL; __key_create_or_update() local 1079 struct key *key = key_ref_to_ptr(key_ref); key_update() local 1131 key_revoke(struct key * key) key_revoke() argument 1167 key_invalidate(struct key * key) key_invalidate() argument 1194 generic_key_instantiate(struct key * key,struct key_preparsed_payload * prep) generic_key_instantiate() argument [all...] |
| H A D | request_key.c | 2 /* Request a key from userspace 7 * See Documentation/security/keys/request-key.rst 20 #define key_negative_timeout 60 /* default timeout on a negative key's existence */ 22 static struct key *check_cached_key(struct keyring_search_context *ctx) in check_cached_key() 25 struct key *key = current->cached_requested_key; in check_cached_key() local 27 if (key && in check_cached_key() 28 ctx->match_data.cmp(key, &ctx->match_data) && in check_cached_key() 29 !(key->flags & ((1 << KEY_FLAG_INVALIDATED) | in check_cached_key() 31 return key_get(key); in check_cached_key() 36 cache_requested_key(struct key * key) cache_requested_key() argument 62 struct key *key = rka->target_key; complete_request_key() local 124 struct key *key = rka->target_key, *keyring, *session, *user_session; call_sbin_request_key() local 226 construct_key(struct key * key,const void * callout_info,size_t callout_len,void * aux,struct key * dest_keyring) construct_key() argument 376 struct key *key; construct_alloc_key() local 497 struct key *key; construct_key_and_link() local 596 struct key *key; request_key_and_link() local 676 wait_for_key_construction(struct key * key,bool intr) wait_for_key_construction() argument 711 struct key *key; request_key_tag() local 753 struct key *key; request_key_with_auxdata() local 798 struct key *key; request_key_rcu() local [all...] |
| H A D | gc.c | 72 void key_set_expiry(struct key *key, time64_t expiry) in key_set_expiry() argument 74 key->expiry = expiry; in key_set_expiry() 76 if (!(key->type->flags & KEY_TYPE_INSTANT_REAP)) in key_set_expiry() 138 struct key *key = in key_gc_unused_keys() local 139 list_entry(keys->next, struct key, graveyard_link); in key_gc_unused_keys() 140 short state = key->state; in key_gc_unused_keys() 142 list_del(&key->graveyard_link); in key_gc_unused_keys() 144 kdebug("- %u", key->serial); in key_gc_unused_keys() 145 key_check(key); in key_gc_unused_keys() 148 remove_watch_list(key->watchers, key->serial); in key_gc_unused_keys() [all …]
|
| H A D | keyring.c | 40 static inline struct key *keyring_ptr_to_key(const struct assoc_array_ptr *x) in keyring_ptr_to_key() 43 return (struct key *)((unsigned long)object & ~KEYRING_PTR_SUBTYPE); in keyring_ptr_to_key() 45 static inline void *keyring_key_to_ptr(struct key *key) in keyring_key_to_ptr() argument 47 if (key->type == &key_type_keyring) in keyring_key_to_ptr() 48 return (void *)((unsigned long)key | KEYRING_PTR_SUBTYPE); in keyring_key_to_ptr() 49 return key; in keyring_key_to_ptr() 76 static int keyring_instantiate(struct key *keyring, 78 static void keyring_revoke(struct key *keyring); 79 static void keyring_destroy(struct key *keyring); 80 static void keyring_describe(const struct key *keyring, struct seq_file *m); [all …]
|
| H A D | internal.h | 2 /* Authentication token and access key management internal defs 14 #include <linux/key-type.h> 95 extern int __key_link_lock(struct key *keyring, 97 extern int __key_move_lock(struct key *l_keyring, struct key *u_keyring, 99 extern int __key_link_begin(struct key *keyring, 102 extern int __key_link_check_live_key(struct key *keyring, struct key *key); 103 extern void __key_link(struct key *keyrin 179 notify_key(struct key * key,enum key_notification_subtype subtype,u32 aux) notify_key() argument 217 key_is_dead(const struct key * key,time64_t limit) key_is_dead() argument 365 key_check(const struct key * key) key_check() argument 373 key_check(key) global() argument [all...] |
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_lru_map.c | 42 static int bpf_map_lookup_elem_with_ref_bit(int fd, unsigned long long key, in bpf_map_lookup_elem_with_ref_bit() argument 48 BPF_LD_IMM64(BPF_REG_3, key), in bpf_map_lookup_elem_with_ref_bit() 163 unsigned long long key, value[nr_cpus]; in test_lru_sanity0() local 185 key = 1; in test_lru_sanity0() 186 assert(!bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST)); in test_lru_sanity0() 187 assert(!bpf_map_update_elem(expected_map_fd, &key, value, in test_lru_sanity0() 191 assert(bpf_map_update_elem(lru_map_fd, &key, value, BPF_NOEXIST) == -EEXIST); in test_lru_sanity0() 194 assert(bpf_map_update_elem(lru_map_fd, &key, value, -1) == -EINVAL); in test_lru_sanity0() 199 key = 2; in test_lru_sanity0() 200 assert(bpf_map_lookup_elem(lru_map_fd, &key, value) == -ENOENT); in test_lru_sanity0() [all …]
|
| /linux/drivers/net/wireless/silabs/wfx/ |
| H A D | key.c | 34 struct ieee80211_key_conf *key, u8 *peer_addr) in fill_wep_pair() argument 36 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_pair() 37 msg->key_length = key->keylen; in fill_wep_pair() 38 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_pair() 44 struct ieee80211_key_conf *key) in fill_wep_group() argument 46 WARN(key->keylen > sizeof(msg->key_data), "inconsistent data"); in fill_wep_group() 47 msg->key_id = key->keyidx; in fill_wep_group() 48 msg->key_length = key->keylen; in fill_wep_group() 49 memcpy(msg->key_data, key->key, key->keylen); in fill_wep_group() 54 struct ieee80211_key_conf *key, u8 *peer_addr) in fill_tkip_pair() argument [all …]
|
| /linux/include/linux/ |
| H A D | key.h | 33 struct key; 155 static inline key_ref_t make_key_ref(const struct key *key, in make_key_ref() argument 158 return (key_ref_t) ((unsigned long) key | possession); in make_key_ref() 161 static inline struct key *key_ref_to_ptr(const key_ref_t key_ref) in key_ref_to_ptr() 163 return (struct key *) ((unsigned long) key_ref & ~1UL); in key_ref_to_ptr() 171 typedef int (*key_restrict_link_func_t)(struct key *dest_keyring, 174 struct key *restriction_key); 178 struct key *key; member 195 struct key { struct 284 extern struct key *key_alloc(struct key_type *type, [all …]
|
| H A D | key-type.h | 41 typedef int (*request_key_actor_t)(struct key *auth_key, void *aux); 51 bool (*cmp)(const struct key *key, 95 int (*instantiate)(struct key *key, struct key_preparsed_payload *prep); 102 int (*update)(struct key *key, struct key_preparsed_payload *prep); 120 void (*revoke)(struct key *key); 123 void (*destroy)(struct key *key); 126 void (*describe)(const struct key *key, struct seq_file *p); 135 long (*read)(const struct key *key, char *buffer, size_t buflen); 173 extern int key_payload_reserve(struct key *key, size_t datalen); 174 extern int key_instantiate_and_link(struct key *key, [all …]
|
| H A D | siphash.h | 20 u64 key[2]; member 25 static inline bool siphash_key_is_zero(const siphash_key_t *key) in siphash_key_is_zero() argument 27 return !(key->key[0] | key->key[1]); in siphash_key_is_zero() 30 u64 __siphash_aligned(const void *data, size_t len, const siphash_key_t *key); 31 u64 __siphash_unaligned(const void *data, size_t len, const siphash_key_t *key); 33 u64 siphash_1u64(const u64 a, const siphash_key_t *key); 34 u64 siphash_2u64(const u64 a, const u64 b, const siphash_key_t *key); 36 const siphash_key_t *key); 38 const siphash_key_t *key); 39 u64 siphash_1u32(const u32 a, const siphash_key_t *key); [all …]
|
| H A D | jump_label_ratelimit.h | 10 struct static_key key; member 16 struct static_key_true key; member 22 struct static_key_false key; member 28 __static_key_slow_dec_deferred(&(x)->key, &(x)->work, (x)->timeout) 30 __static_key_slow_dec_deferred(&(x)->key.key, &(x)->work, (x)->timeout) 36 __static_key_slow_dec_deferred(struct static_key *key, 39 extern void __static_key_deferred_flush(void *key, struct delayed_work *work); 41 jump_label_rate_limit(struct static_key_deferred *key, unsigned long rl); 47 .key = { STATIC_KEY_INIT_TRUE }, \ 56 .key = { STATIC_KEY_INIT_FALSE }, \ [all …]
|
| /linux/net/ceph/ |
| H A D | crypto.c | 20 static int set_aes_tfm(struct ceph_crypto_key *key) in set_aes_tfm() argument 26 key->aes_tfm = crypto_alloc_sync_skcipher("cbc(aes)", 0, 0); in set_aes_tfm() 28 if (IS_ERR(key->aes_tfm)) { in set_aes_tfm() 29 ret = PTR_ERR(key->aes_tfm); in set_aes_tfm() 30 key->aes_tfm = NULL; in set_aes_tfm() 34 ret = crypto_sync_skcipher_setkey(key->aes_tfm, key->key, key->len); in set_aes_tfm() 41 static int set_krb5_tfms(struct ceph_crypto_key *key, const u32 *key_usages, in set_krb5_tfms() argument 44 struct krb5_buffer TK = { .len = key->len, .data = key->key }; in set_krb5_tfms() 49 if (WARN_ON_ONCE(key_usage_cnt > ARRAY_SIZE(key->krb5_tfms))) in set_krb5_tfms() 52 key->krb5_type = crypto_krb5_find_enctype( in set_krb5_tfms() [all …]
|
| /linux/net/openvswitch/ |
| H A D | flow.c | 381 static int parse_ipv6hdr(struct sk_buff *skb, struct sw_flow_key *key) in parse_ipv6hdr() argument 396 get_ipv6_ext_hdrs(skb, nh, &key->ipv6.exthdrs); in parse_ipv6hdr() 398 key->ip.proto = NEXTHDR_NONE; in parse_ipv6hdr() 399 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr() 400 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr() 401 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr() 402 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr() 403 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr() 408 key->ip.frag = OVS_FRAG_TYPE_LATER; in parse_ipv6hdr() 409 key->ip.proto = NEXTHDR_FRAGMENT; in parse_ipv6hdr() [all …]
|
| /linux/drivers/s390/crypto/ |
| H A D | zcrypt_cca_key.h | 112 } __packed *key = p; in zcrypt_type6_mex_key_en() local 124 memset(key, 0, sizeof(*key)); in zcrypt_type6_mex_key_en() 126 key->pubhdr = static_pub_hdr; in zcrypt_type6_mex_key_en() 127 key->pubsec = static_pub_sec; in zcrypt_type6_mex_key_en() 130 ptr = key->exponent; in zcrypt_type6_mex_key_en() 138 key->pubsec.modulus_bit_len = 8 * mex->inputdatalength; in zcrypt_type6_mex_key_en() 139 key->pubsec.modulus_byte_len = mex->inputdatalength; in zcrypt_type6_mex_key_en() 140 key->pubsec.exponent_len = mex->inputdatalength; in zcrypt_type6_mex_key_en() 141 key->pubsec.section_length = sizeof(key->pubsec) + in zcrypt_type6_mex_key_en() 143 key->pubhdr.token_length = in zcrypt_type6_mex_key_en() [all …]
|
| /linux/lib/ |
| H A D | test_static_keys.c | 37 struct static_key *key; member 41 #define test_key_func(key, branch) \ argument 42 static bool key ## _ ## branch(void) \ 44 return branch(&key); \ 47 static void invert_key(struct static_key *key) in invert_key() argument 49 if (static_key_enabled(key)) in invert_key() 50 static_key_disable(key); in invert_key() 52 static_key_enable(key); in invert_key() 61 if (previous != keys[i].key) { in invert_keys() 62 invert_key(keys[i].key); in invert_keys() [all …]
|
| /linux/crypto/ |
| H A D | rsa_helper.c | 19 struct rsa_key *key = context; in rsa_get_n() local 40 key->n = value; in rsa_get_n() 41 key->n_sz = vlen; in rsa_get_n() 49 struct rsa_key *key = context; in rsa_get_e() local 52 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_e() 55 key->e = value; in rsa_get_e() 56 key->e_sz = vlen; in rsa_get_e() 64 struct rsa_key *key = context; in rsa_get_d() local 67 if (!value || !key->n_sz || !vlen || vlen > key->n_sz) in rsa_get_d() 70 key->d = value; in rsa_get_d() [all …]
|
| /linux/fs/afs/ |
| H A D | security.c | 26 struct key *key; in afs_alloc_anon_key() local 29 key = cell->anonymous_key; in afs_alloc_anon_key() 30 if (!key) { in afs_alloc_anon_key() 31 key = rxrpc_get_null_key(cell->key_desc); in afs_alloc_anon_key() 32 if (!IS_ERR(key)) in afs_alloc_anon_key() 33 cell->anonymous_key = key; in afs_alloc_anon_key() 37 if (IS_ERR(key)) in afs_alloc_anon_key() 38 return PTR_ERR(key); in afs_alloc_anon_key() 48 struct key *afs_request_key(struct afs_cell *cell) in afs_request_key() 50 struct key *key; in afs_request_key() local [all …]
|
| /linux/drivers/nvdimm/ |
| H A D | security.c | 27 static void *key_data(struct key *key) in key_data() argument 29 struct encrypted_key_payload *epayload = dereference_key_locked(key); in key_data() 31 lockdep_assert_held_read(&key->sem); in key_data() 36 static void nvdimm_put_key(struct key *key) in nvdimm_put_key() argument 38 if (!key) in nvdimm_put_key() 41 up_read(&key->sem); in nvdimm_put_key() 42 key_put(key); in nvdimm_put_key() 50 static struct key *nvdimm_request_key(struct nvdimm *nvdimm) in nvdimm_request_key() 52 struct key *key = NULL; in nvdimm_request_key() local 58 key = request_key(&key_type_encrypted, desc, ""); in nvdimm_request_key() [all …]
|
| /linux/tools/testing/selftests/bpf/map_tests/ |
| H A D | lpm_trie_map_basic_ops.c | 35 uint8_t key[]; member 55 const uint8_t *key, 59 const uint8_t *key, in tlpm_add() argument 68 node = tlpm_match(list, key, n_bits); in tlpm_add() 70 memcpy(node->key, key, n); in tlpm_add() 81 memcpy(node->key, key, n); in tlpm_add() 99 const uint8_t *key, in tlpm_match() argument 113 if ((key[i / 8] & (1 << (7 - i % 8))) != in tlpm_match() 114 (list->key[i / 8] & (1 << (7 - i % 8)))) in tlpm_match() 128 const uint8_t *key, in tlpm_delete() argument [all …]
|
| /linux/samples/bpf/ |
| H A D | map_perf_test.bpf.c | 19 __type(key, u32); 26 __type(key, u32); 33 __type(key, u32); 41 __type(key, u32); 67 __type(key, u32); 91 __type(key, u32); 98 __type(key, u32); 106 u32 key = bpf_get_current_pid_tgid(); in BPF_KSYSCALL() local 112 bpf_map_update_elem(&hash_map, &key, &init_val, BPF_ANY); in BPF_KSYSCALL() 113 value = bpf_map_lookup_elem(&hash_map, &key); in BPF_KSYSCALL() [all …]
|
| /linux/security/integrity/ |
| H A D | digsig_asymmetric.c | 11 #include <linux/key-type.h> 20 * Request an asymmetric key. 22 static struct key *request_asymmetric_key(struct key *keyring, uint32_t keyid) in request_asymmetric_key() 24 struct key *key; in request_asymmetric_key() local 29 pr_debug("key search: \"%s\"\n", name); in request_asymmetric_key() 31 key = get_ima_blacklist_keyring(); in request_asymmetric_key() 32 if (key) { in request_asymmetric_key() 35 kref = keyring_search(make_key_ref(key, in request_asymmetric_key() 88 struct key *key; asymmetric_verify() local [all...] |
| /linux/tools/perf/util/kvm-stat-arch/ |
| H A D | kvm-stat-x86.c | 27 struct event_key *key) in mmio_event_get_key() 29 key->key = perf_sample__intval(sample, "gpa"); in mmio_event_get_key() 30 key->info = perf_sample__intval(sample, "type"); in mmio_event_get_key() 37 static bool mmio_event_begin(struct perf_sample *sample, struct event_key *key) 46 mmio_event_get_key(sample, key); in mmio_event_begin() 53 static bool mmio_event_end(struct perf_sample *sample, struct event_key *key) in mmio_event_begin() 62 mmio_event_get_key(sample, key); in mmio_event_end() 70 struct event_key *key, in mmio_event_end() 74 (unsigned long)key in mmio_event_decode_key() 28 mmio_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) mmio_event_get_key() argument 39 mmio_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) mmio_event_begin() argument 56 mmio_event_end(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) mmio_event_end() argument 73 mmio_event_decode_key(struct perf_kvm_stat * kvm __maybe_unused,struct event_key * key,char * decode) mmio_event_decode_key() argument 91 ioport_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) ioport_event_get_key() argument 99 ioport_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) ioport_event_begin() argument 117 ioport_event_decode_key(struct perf_kvm_stat * kvm __maybe_unused,struct event_key * key,char * decode) ioport_event_decode_key() argument 135 msr_event_get_key(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) msr_event_get_key() argument 143 msr_event_begin(struct evsel * evsel,struct perf_sample * sample,struct event_key * key) msr_event_begin() argument 161 msr_event_decode_key(struct perf_kvm_stat * kvm __maybe_unused,struct event_key * key,char * decode) msr_event_decode_key() argument [all...] |
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | lookup_and_delete.c | 15 __u64 key, value = START_VALUE; in fill_values() local 18 for (key = 1; key < MAX_ENTRIES + 1; key++) { in fill_values() 19 err = bpf_map_update_elem(map_fd, &key, &value, BPF_NOEXIST); in fill_values() 29 __u64 key, value[nr_cpus]; in fill_values_percpu() local 35 for (key = 1; key < MAX_ENTRIES + 1; key++) { in fill_values_percpu() 36 err = bpf_map_update_elem(map_fd, &key, value, BPF_NOEXIST); in fill_values_percpu() 78 static int trigger_tp(struct test_lookup_and_delete *skel, __u64 key, in trigger_tp() argument 84 skel->bss->set_key = key; in trigger_tp() 101 __u64 key, value; in test_lookup_and_delete_hash() local 114 key = 1; in test_lookup_and_delete_hash() [all …]
|