/linux-master/tools/perf/util/ |
H A D | strfilter.h | 23 * @rules: Filter rule, which is a combination of glob expressions. 24 * @err: Pointer which points an error detected on @rules 26 * Parse @rules and return new strfilter. Return NULL if an error detected. 30 struct strfilter *strfilter__new(const char *rules, const char **err); 35 * @rules: Filter rule to be appended at left of the root of 37 * @err: Pointer which points an error detected on @rules 39 * Parse @rules and join it to the @filter by using logical-or. 43 const char *rules, const char **err); 48 * @rules: Filter rule to be appended at left of the root of 50 * @err: Pointer which points an error detected on @rules [all...] |
H A D | strfilter.c | 160 struct strfilter *strfilter__new(const char *rules, const char **err) argument 166 filter->root = strfilter_node__new(rules, &ep); 179 const char *rules, const char **err) 184 if (!filter || !rules) 187 right = strfilter_node__new(rules, &ep); 207 int strfilter__or(struct strfilter *filter, const char *rules, const char **err) argument 209 return strfilter__append(filter, true, rules, err); 212 int strfilter__and(struct strfilter *filter, const char *rules, argument 215 return strfilter__append(filter, false, rules, err); 238 /* Return true if STR matches the filter rules */ 178 strfilter__append(struct strfilter *filter, bool _or, const char *rules, const char **err) argument [all...] |
/linux-master/tools/power/acpi/tools/ec/ |
H A D | Makefile | 14 include ../../Makefile.rules
|
/linux-master/arch/um/os-Linux/skas/ |
H A D | Makefile | 10 include $(srctree)/arch/um/scripts/Makefile.rules
|
/linux-master/security/apparmor/ |
H A D | resource.c | 92 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 93 typeof(*rules), list); 96 if (rules->rlimits.mask & (1 << resource) && new_rlim->rlim_max > 97 rules->rlimits.limits[resource].rlim_max) 128 * profiles. AppArmor rules currently have the implicit assumption 168 struct aa_ruleset *rules = list_first_entry(&old->rules, local 169 typeof(*rules), 171 if (rules 188 struct aa_ruleset *rules = list_first_entry(&new->rules, local [all...] |
H A D | capability.c | 67 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 68 typeof(*rules), list); 77 !cap_raised(rules->caps.audit, cap))) 81 cap_raised(rules->caps.kill, cap)) { 83 } else if (cap_raised(rules->caps.quiet, cap) && 119 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 120 typeof(*rules), list); 123 if (cap_raised(rules [all...] |
H A D | net.c | 113 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 114 typeof(*rules), list); 124 state = RULE_MEDIATES(rules, AA_CLASS_NET); 130 state = aa_dfa_match_len(rules->policy->dfa, state, (char *) &buffer, 132 perms = *aa_lookup_perms(rules->policy, state); 226 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 227 typeof(*rules), list); 229 if (rules [all...] |
H A D | ipc.c | 83 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 84 typeof(*rules), list); 89 !ANY_RULE_MEDIATES(&profile->rules, AA_CLASS_SIGNAL)) 95 state = aa_dfa_next(rules->policy->dfa, 96 rules->policy->start[AA_CLASS_SIGNAL], 98 aa_label_match(profile, rules, peer, state, false, request, &perms);
|
H A D | policy_unpack.c | 565 static bool unpack_secmark(struct aa_ext *e, struct aa_ruleset *rules) argument 575 rules->secmark = kcalloc(size, sizeof(struct aa_secmark), 577 if (!rules->secmark) 580 rules->secmark_count = size; 583 if (!unpack_u8(e, &rules->secmark[i].audit, NULL)) 585 if (!unpack_u8(e, &rules->secmark[i].deny, NULL)) 587 if (!aa_unpack_strdup(e, &rules->secmark[i].label, NULL)) 599 if (rules->secmark) { 601 kfree(rules->secmark[i].label); 602 kfree(rules 611 unpack_rlimits(struct aa_ext *e, struct aa_ruleset *rules) argument 811 struct aa_ruleset *rules; local 1234 struct aa_ruleset *rules = list_first_entry(&profile->rules, local [all...] |
H A D | task.c | 231 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 232 typeof(*rules), list); 237 aa_profile_match_label(profile, rules, peer, AA_CLASS_PTRACE, request, 249 !ANY_RULE_MEDIATES(&tracee->rules, AA_CLASS_PTRACE)) 263 if (ANY_RULE_MEDIATES(&tracer->rules, AA_CLASS_PTRACE)) 327 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 328 typeof(*rules), 332 state = RULE_MEDIATES(rules, a [all...] |
H A D | mount.c | 312 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 313 typeof(*rules), list); 320 if (!RULE_MEDIATES(rules, AA_CLASS_MOUNT)) 335 pos = do_match_mnt(rules->policy, 336 rules->policy->start[AA_CLASS_MOUNT], 372 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 373 typeof(*rules), list); 379 if (!RULE_MEDIATES(rules, AA_CLASS_MOUN 605 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 669 struct aa_ruleset *rules = list_first_entry(&profile->rules, local [all...] |
H A D | domain.c | 91 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 92 typeof(*rules), list); 96 state = aa_dfa_match(rules->file->dfa, state, "&"); 98 return aa_dfa_match(rules->file->dfa, state, tp->base.hname); 102 state = aa_dfa_match_len(rules->file->dfa, state, ":", 1); 103 state = aa_dfa_match(rules->file->dfa, state, ns_name); 104 state = aa_dfa_match_len(rules->file->dfa, state, ":", 1); 105 return aa_dfa_match(rules->file->dfa, state, tp->base.hname); 129 struct aa_ruleset *rules local 191 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 516 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 568 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 637 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 739 struct aa_ruleset *rules = list_first_entry(&profile->rules, local 1296 struct aa_ruleset *rules = list_first_entry(&profile->rules, local [all...] |
/linux-master/tools/power/acpi/tools/acpidbg/ |
H A D | Makefile | 22 include ../../Makefile.rules
|
/linux-master/arch/um/os-Linux/drivers/ |
H A D | Makefile | 13 include $(srctree)/arch/um/scripts/Makefile.rules
|
/linux-master/arch/um/kernel/skas/ |
H A D | Makefile | 17 include $(srctree)/arch/um/scripts/Makefile.rules
|
/linux-master/fs/hostfs/ |
H A D | Makefile | 13 include $(srctree)/arch/um/scripts/Makefile.rules
|
/linux-master/arch/x86/um/os-Linux/ |
H A D | Makefile | 12 include $(srctree)/arch/um/scripts/Makefile.rules
|
/linux-master/drivers/gpu/drm/xe/ |
H A D | xe_gen_wa_oob.c | 19 " * This file was generated from rules: %s\n" \ 58 char *name, *prev_name = NULL, *rules; local 81 rules = strtok(NULL, ""); 89 rules = name; 93 if (rules[0] == '\0') { 101 name, rules); 104 rules);
|
/linux-master/drivers/net/phy/qcom/ |
H A D | qca808x.c | 419 static int qca808x_led_parse_netdev(struct phy_device *phydev, unsigned long rules, argument 423 if (test_bit(TRIGGER_NETDEV_TX, &rules)) 425 if (test_bit(TRIGGER_NETDEV_RX, &rules)) 427 if (test_bit(TRIGGER_NETDEV_LINK_10, &rules)) 429 if (test_bit(TRIGGER_NETDEV_LINK_100, &rules)) 431 if (test_bit(TRIGGER_NETDEV_LINK_1000, &rules)) 433 if (test_bit(TRIGGER_NETDEV_LINK_2500, &rules)) 435 if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules)) 437 if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules)) 440 if (rules 462 qca808x_led_hw_is_supported(struct phy_device *phydev, u8 index, unsigned long rules) argument 473 qca808x_led_hw_control_set(struct phy_device *phydev, u8 index, unsigned long rules) argument 508 qca808x_led_hw_control_get(struct phy_device *phydev, u8 index, unsigned long *rules) argument [all...] |
H A D | qca807x.c | 134 static int qca807x_led_parse_netdev(struct phy_device *phydev, unsigned long rules, argument 140 if (test_bit(TRIGGER_NETDEV_TX, &rules)) 142 if (test_bit(TRIGGER_NETDEV_RX, &rules)) 144 if (test_bit(TRIGGER_NETDEV_LINK_10, &rules)) 146 if (test_bit(TRIGGER_NETDEV_LINK_100, &rules)) 148 if (test_bit(TRIGGER_NETDEV_LINK_1000, &rules)) 150 if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules)) 152 if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules)) 156 if (test_bit(TRIGGER_NETDEV_TX, &rules)) 158 if (test_bit(TRIGGER_NETDEV_RX, &rules)) 190 qca807x_led_hw_is_supported(struct phy_device *phydev, u8 index, unsigned long rules) argument 201 qca807x_led_hw_control_set(struct phy_device *phydev, u8 index, unsigned long rules) argument 247 qca807x_led_hw_control_get(struct phy_device *phydev, u8 index, unsigned long *rules) argument [all...] |
/linux-master/Documentation/admin-guide/aoe/ |
H A D | udev-install.sh | 1 # install the aoe-specific udev rules from udev.txt into 22 # find the directory where udev rules are stored, often 23 # /etc/udev/rules.d 27 rules_d=/etc/udev/rules.d 30 echo "$me Error: cannot find udev rules directory" 1>&2 33 sh -xc "cp `dirname $0`/udev.txt $rules_d/60-aoe.rules"
|
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | twfw.c | 36 struct rules_map rules SEC(".maps"); 47 struct rule* rule = bpf_map_lookup_elem(&rules, &key);
|
/linux-master/drivers/net/dsa/qca/ |
H A D | qca8k-leds.c | 53 * 3 control rules for phy0-3 that applies to all their leds 54 * 3 control rules for phy4 65 qca8k_parse_netdev(unsigned long rules, u32 *offload_trigger) argument 68 if (test_bit(TRIGGER_NETDEV_TX, &rules)) 70 if (test_bit(TRIGGER_NETDEV_RX, &rules)) 72 if (test_bit(TRIGGER_NETDEV_LINK_10, &rules)) 74 if (test_bit(TRIGGER_NETDEV_LINK_100, &rules)) 76 if (test_bit(TRIGGER_NETDEV_LINK_1000, &rules)) 78 if (test_bit(TRIGGER_NETDEV_HALF_DUPLEX, &rules)) 80 if (test_bit(TRIGGER_NETDEV_FULL_DUPLEX, &rules)) 278 qca8k_cled_hw_control_is_supported(struct led_classdev *ldev, unsigned long rules) argument 286 qca8k_cled_hw_control_set(struct led_classdev *ldev, unsigned long rules) argument 310 qca8k_cled_hw_control_get(struct led_classdev *ldev, unsigned long *rules) argument [all...] |
/linux-master/net/netfilter/ |
H A D | nft_set_pipapo.h | 52 /* Each n-bit range maps to up to n * 2 rules */ 86 * @n: Number of rules (in next field) this rule maps to 107 * @rules: Number of inserted rules 109 * @rules_alloc: Number of allocated rules, always >= rules 116 unsigned int rules; member in struct:nft_pipapo_field 181 int pipapo_refill(unsigned long *map, unsigned int len, unsigned int rules, 238 * of rules (composing netmasks) the entries expand to. We compute the worst 255 unsigned long rules; local [all...] |
/linux-master/tools/power/acpi/tools/pfrut/ |
H A D | Makefile | 16 include ../../Makefile.rules
|