Home
last modified time | relevance | path

Searched full:branch (Results 1 – 25 of 1191) sorted by relevance

12345678910>>...48

/Linux-v6.1/tools/perf/pmu-events/arch/arm64/arm/cortex-a510/
Dbranch.json18 …ional branch executed. This event counts when any branch that the conditional predictor can predic…
21 …ional branch executed. This event counts when any branch that the conditional predictor can predic…
24branch mispredicted. This event counts when any indirect branch that the Branch Target Address Cac…
27branch mispredicted. This event counts when any indirect branch that the Branch Target Address Cac…
30branch mispredicted due to address miscompare. This event counts when any indirect branch that the…
33branch mispredicted due to address miscompare. This event counts when any indirect branch that the…
36branch mispredicted. This event counts when any branch that the conditional predictor can predict …
39branch mispredicted. This event counts when any branch that the conditional predictor can predict …
42branch with predicted address executed. This event counts when any indirect branch that the BTAC c…
45branch with predicted address executed. This event counts when any indirect branch that the BTAC c…
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/silvermont/
Dpipeline.json3 "BriefDescription": "Counts the number of branch instructions retired...",
8branch instructions retired. Branch prediction predicts the branch target and enables the process…
12 "BriefDescription": "Counts the number of taken branch instructions retired",
18branch instructions retired. Branch prediction predicts the branch target and enables the process…
23 "BriefDescription": "Counts the number of near CALL branch instructions retired",
28branch instructions retired. Branch prediction predicts the branch target and enables the process…
33 "BriefDescription": "Counts the number of far branch instructions retired",
38branch instructions retired. Branch prediction predicts the branch target and enables the process…
43 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired",
48branch instructions retired. Branch prediction predicts the branch target and enables the process…
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/arm64/arm/cortex-a55/
Dbranch.json18 …l branch executed.This event counts when any branch which can be predicted by the conditional pred…
21 …l branch executed.This event counts when any branch which can be predicted by the conditional pred…
24branch mis-predicted.This event counts when any indirect branch which can be predicted by the BTAC…
27branch mis-predicted.This event counts when any indirect branch which can be predicted by the BTAC…
30branch mis-predicted due to address mis-compare.This event counts when any indirect branch which c…
33branch mis-predicted due to address mis-compare.This event counts when any indirect branch which c…
36branch mis-predicted.This event counts when any branch which can be predicted by the conditional p…
39branch mis-predicted.This event counts when any branch which can be predicted by the conditional p…
42branch with predicted address executed.This event counts when any indirect branch which can be pre…
45branch with predicted address executed.This event counts when any indirect branch which can be pre…
[all …]
/Linux-v6.1/Documentation/admin-guide/hw-vuln/
Dspectre.rst6 Spectre is a class of side channel attacks that exploit branch prediction
18 use branch prediction and speculative execution.
46 CVE-2017-5715 Branch target injection Spectre variant 2
55 buffers, and branch predictors. Malicious software may be able to
70 of speculative execution that bypasses conditional branch instructions
89 Spectre variant 2 (Branch Target Injection)
92 The branch target injection attack takes advantage of speculative
94 branch predictors inside the processor used to guess the target of
103 branches in the victim to gadget code by poisoning the branch target
104 buffer of a CPU used for predicting indirect branch addresses. Such
[all …]
/Linux-v6.1/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c31 enum intel_pt_insn_branch branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder() local
39 intel_pt_insn->branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder()
52 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
61 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
66 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
70 branch = INTEL_PT_BR_CONDITIONAL; in intel_pt_insn_decoder()
78 branch = INTEL_PT_BR_CONDITIONAL; in intel_pt_insn_decoder()
85 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
89 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
93 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/amdzen3/
Dcore.json16 "BriefDescription": "Retired Branch Instructions.",
17 …"PublicDescription": "The number of branch instructions retired. This includes all types of archit…
22 "BriefDescription": "Retired Branch Instructions Mispredicted.",
23 "PublicDescription": "The number of retired branch instructions, that were mispredicted."
28 "BriefDescription": "Retired Taken Branch Instructions.",
34 "BriefDescription": "Retired Taken Branch Instructions Mispredicted.",
35 "PublicDescription": "The number of retired taken branch instructions that were mispredicted."
41 …YSRET, plus exceptions and interrupts. Far control transfers are not subject to branch prediction."
46 "BriefDescription": "Retired Branch Resyncs.",
47 …ng other things. Each occurrence reflects a restart penalty similar to a branch mispredict. This i…
[all …]
/Linux-v6.1/tools/perf/tests/shell/
Dtest_brstack.sh2 # Check branch stack sampling
14 # skip the test if the hardware doesn't support branch stack sampling
16 if ! perf record -o- --no-buildid --branch-filter any,save_type,u -- true > /dev/null 2>&1 ; then
41 if ((cnt++) % 3) /* branch (cond) */
53 } /* branch (uncond) */
60 echo "Testing user branch stack sampling"
65 perf record -o $TMPDIR/perf.data --branch-filter any,save_type,u -- $TMPDIR/a.out > /dev/null 2>&1
68 # example of branch entries:
82 # some branch types are still not being tested:
86 # first argument <arg0> is the argument passed to "--branch-stack <arg0>,save_type,u"
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/amdzen2/
Dcore.json16 "BriefDescription": "Retired Branch Instructions.",
17 …"PublicDescription": "The number of branch instructions retired. This includes all types of archit…
22 "BriefDescription": "Retired Branch Instructions Mispredicted.",
23 …"PublicDescription": "The number of branch instructions retired, of any type, that were not correc…
28 "BriefDescription": "Retired Taken Branch Instructions.",
34 "BriefDescription": "Retired Taken Branch Instructions Mispredicted.",
35 "PublicDescription": "The number of retired taken branch instructions that were mispredicted."
41 …YSRET, plus exceptions and interrupts. Far control transfers are not subject to branch prediction."
46 "BriefDescription": "Retired Branch Resyncs.",
47 …ng other things. Each occurrence reflects a restart penalty similar to a branch mispredict. This i…
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/amdzen1/
Dcore.json16 "BriefDescription": "Retired Branch Instructions.",
17 …"PublicDescription": "The number of branch instructions retired. This includes all types of archit…
22 "BriefDescription": "Retired Branch Instructions Mispredicted.",
23 …"PublicDescription": "The number of branch instructions retired, of any type, that were not correc…
28 "BriefDescription": "Retired Taken Branch Instructions.",
34 "BriefDescription": "Retired Taken Branch Instructions Mispredicted.",
35 "PublicDescription": "The number of retired taken branch instructions that were mispredicted."
41 …YSRET, plus exceptions and interrupts. Far control transfers are not subject to branch prediction."
46 "BriefDescription": "Retired Branch Resyncs.",
47 …ng other things. Each occurrence reflects a restart penalty similar to a branch mispredict. This i…
[all …]
/Linux-v6.1/Documentation/staging/
Dstatic-keys.rst48 The static_branch_unlikely() branch will be generated into the code with as little
56 Currently, tracepoints are implemented using a conditional branch. The
78 the branch site to change the branch direction.
80 For example, if we have a simple branch that is disabled by default::
83 printk("I am the true branch\n");
87 straight-line code path. When the branch is 'flipped', we will patch the
89 out-of-line true branch. Thus, changing branch direction is expensive but
90 branch selection is basically 'free'. That is the basic tradeoff of this
130 Branch(es) can be set true via::
138 The branch(es) can then be switched via reference counts::
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/goldmont/
Dpipeline.json3 "BriefDescription": "Retired branch instructions (Precise event capable)",
9 …"PublicDescription": "Counts branch instructions retired for all branch types. This is an archite…
13 "BriefDescription": "Retired taken branch instructions (Precise event capable)",
19 "PublicDescription": "Counts the number of taken branch instructions retired.",
30 "PublicDescription": "Counts near CALL branch instructions retired.",
35 "BriefDescription": "Retired far branch instructions (Precise event capable)",
41 …"PublicDescription": "Counts far branch instructions retired. This includes far jump, far call an…
52 "PublicDescription": "Counts near indirect CALL branch instructions retired.",
57 "BriefDescription": "Retired conditional branch instructions (Precise event capable)",
63 … on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when th…
[all …]
Dfrontend.json3 "BriefDescription": "BACLEARs asserted for any branch type",
8 …ut not limited to indirect branch/call, Jcc (Jump on Conditional Code/Jump if Condition is Met) b…
13 "BriefDescription": "BACLEARs asserted for conditional branch",
23 "BriefDescription": "BACLEARs asserted for return branch",
48 …esses from straight line code crosses the cache line boundary, or when a branch target is to a new…
58 …ounts when straight line code crosses the cache line boundary, or when a branch target is to a new…
68 …ounts when straight line code crosses the cache line boundary, or when a branch target is to a new…
78 …t MS startups for uops that are speculative, and subsequently cleared by branch mispredict or a ma…
/Linux-v6.1/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c19 /* Bit defines for CCU branch configuration register */
25 /* CCU branch feature bits */
151 * To safely disable a branch clock a squence of two separate in lpc18xx_ccu_gate_endisable()
181 * The branch clock registers are only accessible in lpc18xx_ccu_gate_is_enabled()
202 static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *branch, in lpc18xx_ccu_register_branch_gate_div() argument
210 if (branch->flags & CCU_BRANCH_HAVE_DIV2) { in lpc18xx_ccu_register_branch_gate_div()
215 div->reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
224 branch->gate.reg = branch->offset + reg_base; in lpc18xx_ccu_register_branch_gate_div()
225 branch->gate.bit_idx = 0; in lpc18xx_ccu_register_branch_gate_div()
227 branch->clk = clk_register_composite(NULL, branch->name, &parent, 1, in lpc18xx_ccu_register_branch_gate_div()
[all …]
/Linux-v6.1/include/linux/
Djump_label.h33 * an "if (static_branch_unlikely(&key))" statement is an unconditional branch
38 * unconditional branch to the out-of-line true branch. Keys that are
42 * At runtime we can change the branch target by setting the key
44 * static_branch_disable(). If the direction of the branch is switched by
45 * these calls then we run-time modify the branch target via a
49 * to the out-of-line of true branch.
52 * the key or branch direction via static_branch_{inc,dec}. Thus,
56 * Since this relies on modifying code, the branch modifying functions
69 * simple conditional branch.
414 * Combine the right initial value (type) with the right branch order
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/goldmontplus/
Dpipeline.json3 "BriefDescription": "Retired branch instructions (Precise event capable)",
10 …"PublicDescription": "Counts branch instructions retired for all branch types. This is an archite…
14 "BriefDescription": "Retired taken branch instructions (Precise event capable)",
21 "PublicDescription": "Counts the number of taken branch instructions retired.",
33 "PublicDescription": "Counts near CALL branch instructions retired.",
38 "BriefDescription": "Retired far branch instructions (Precise event capable)",
45 …"PublicDescription": "Counts far branch instructions retired. This includes far jump, far call an…
57 "PublicDescription": "Counts near indirect CALL branch instructions retired.",
62 "BriefDescription": "Retired conditional branch instructions (Precise event capable)",
69 … on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when th…
[all …]
Dfrontend.json3 "BriefDescription": "BACLEARs asserted for any branch type",
10 …ut not limited to indirect branch/call, Jcc (Jump on Conditional Code/Jump if Condition is Met) b…
15 "BriefDescription": "BACLEARs asserted for conditional branch",
27 "BriefDescription": "BACLEARs asserted for return branch",
58 …esses from straight line code crosses the cache line boundary, or when a branch target is to a new…
70 …ounts when straight line code crosses the cache line boundary, or when a branch target is to a new…
82 …ounts when straight line code crosses the cache line boundary, or when a branch target is to a new…
94 …t MS startups for uops that are speculative, and subsequently cleared by branch mispredict or a ma…
/Linux-v6.1/tools/perf/pmu-events/arch/x86/knightslanding/
Dpipeline.json3 "BriefDescription": "Counts the number of branch instructions retired",
11 "BriefDescription": "Counts the number of near CALL branch instructions retired.",
20 "BriefDescription": "Counts the number of far branch instructions retired.",
29 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.",
38 …"BriefDescription": "Counts the number of branch instructions retired that were conditional jumps.…
47 …"BriefDescription": "Counts the number of branch instructions retired that were near indirect CALL…
56 "BriefDescription": "Counts the number of near relative CALL branch instructions retired.",
65 "BriefDescription": "Counts the number of near RET branch instructions retired.",
74 …"BriefDescription": "Counts the number of branch instructions retired that were conditional jumps …
83 "BriefDescription": "Counts the number of mispredicted branch instructions retired",
[all …]
/Linux-v6.1/arch/powerpc/lib/
Dtest-code-patching.c38 /* The simplest case, branch to self, no flags */ in test_branch_iform()
47 /* Simplest case, branch to self with link */ in test_branch_iform()
53 /* Must be a valid branch to start with */ in test_branch_iform()
56 /* Absolute branch to 0x100 */ in test_branch_iform()
59 /* Absolute branch to 0x420fc */ in test_branch_iform()
62 /* Maximum positive relative branch, + 20MB - 4B */ in test_branch_iform()
65 /* Smallest negative relative branch, - 4B */ in test_branch_iform()
68 /* Largest negative relative branch, - 32 MB */ in test_branch_iform()
72 /* Branch to self, with link */ in test_branch_iform()
77 /* Branch to self - 0x100, with link */ in test_branch_iform()
[all …]
/Linux-v6.1/tools/perf/util/
Dintel-bts.c80 struct branch { struct
89 struct branch *branch; in intel_bts_dump() argument
90 size_t i, pos = 0, br_sz = sizeof(struct branch), sz; in intel_bts_dump()
109 branch = (struct branch *)buf; in intel_bts_dump()
111 le64_to_cpu(branch->from), in intel_bts_dump()
112 le64_to_cpu(branch->to), in intel_bts_dump()
113 le64_to_cpu(branch->misc) & 0x10 ? in intel_bts_dump()
239 for (; offs < len_a; offs += sizeof(struct branch)) { in intel_bts_find_overlap()
273 struct branch *branch) in intel_bts_synth_branch_sample() argument
284 sample.ip = le64_to_cpu(branch->from); in intel_bts_synth_branch_sample()
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/bonnell/
Dpipeline.json11 "BriefDescription": "Branch instructions decoded",
19 "BriefDescription": "Retired branch instructions.",
27 "BriefDescription": "Retired branch instructions.",
35 "BriefDescription": "Retired mispredicted branch instructions (precise event).",
44 "BriefDescription": "Retired branch instructions that were mispredicted not-taken.",
52 "BriefDescription": "Retired branch instructions that were mispredicted taken.",
60 "BriefDescription": "Retired branch instructions that were predicted not-taken.",
68 "BriefDescription": "Retired branch instructions that were predicted taken.",
76 "BriefDescription": "Retired taken branch instructions.",
84 "BriefDescription": "All macro conditional branch instructions.",
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/elkhartlake/
Dpipeline.json3 …"BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
10 … the processor is resteered due to a branch instruction and the branch instruction successfully re…
14 "BriefDescription": "Counts the number of near CALL branch instructions retired.",
25 …"BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far …
36 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.",
47 …"BriefDescription": "Counts the number of retired JCC (Jump on Conditional Code) branch instructio…
58 …"BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instruct…
69 "BriefDescription": "Counts the number of near relative CALL branch instructions retired.",
80 "BriefDescription": "Counts the number of near RET branch instructions retired.",
91 …"BriefDescription": "Counts the number of taken JCC (Jump on Conditional Code) branch instructions…
[all …]
Dfrontend.json3 …"BriefDescription": "Counts the total number of BACLEARS due to all branch types including conditi…
10Branch Target Buffer (BTB) prediction or lack thereof, was corrected by a later branch predictor …
26 "BriefDescription": "Counts the number of BACLEARS due to an indirect branch.",
37 "BriefDescription": "Counts the number of BACLEARS due to a return branch.",
77 …accesses from sequential code crosses the cache line boundary, or when a branch target is moved to…
89 …accesses from sequential code crosses the cache line boundary, or when a branch target is moved to…
101 …accesses from sequential code crosses the cache line boundary, or when a branch target is moved to…
/Linux-v6.1/tools/perf/pmu-events/arch/x86/snowridgex/
Dpipeline.json3 …"BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
10 … the processor is resteered due to a branch instruction and the branch instruction successfully re…
14 "BriefDescription": "Counts the number of near CALL branch instructions retired.",
25 …"BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far …
36 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.",
47 …"BriefDescription": "Counts the number of retired JCC (Jump on Conditional Code) branch instructio…
58 …"BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instruct…
69 "BriefDescription": "Counts the number of near relative CALL branch instructions retired.",
80 "BriefDescription": "Counts the number of near RET branch instructions retired.",
91 …"BriefDescription": "Counts the number of taken JCC (Jump on Conditional Code) branch instructions…
[all …]
/Linux-v6.1/drivers/edac/
Di7300_edac.c48 * Branch 0 - 2 channels: channels 0 and 1 (FDB0 PCI dev 21.0)
49 * Branch 1 - 2 channels: channels 2 and 3 (FDB1 PCI dev 22.0)
54 * On normal operation mode, the two channels on a branch should be
56 * When in mirrored mode, Branch 1 replicate memory at Branch 0, so, the four
67 #define to_channel(ch, branch) ((((branch)) << 1) | (ch)) argument
69 #define to_csrow(slot, ch, branch) \ argument
70 (to_channel(ch, branch) | ((slot) << 2))
125 * Function 1: Memory Branch Map, Control, Errors Register
411 unsigned branch, channel, bank, rank, cas, ras; in i7300_process_fbd_error() local
428 branch = (GET_FBD_FAT_IDX(error_reg) == 2) ? 1 : 0; in i7300_process_fbd_error()
[all …]
/Linux-v6.1/Documentation/maintainer/
Drebasing-and-merging.rst57 expose an unstable branch for others to test with or for automated
58 testing services. If you do expose a branch that may be unstable in
61 - Do not rebase a branch that contains history created by others. If you
100 which may contain multiple topic branches; each branch is usually developed
102 required before any given branch finds its way into an upstream repository.
132 history into your tree, you cannot rebase that branch, even if you
139 trees tend to be a red flag when it comes time to push a branch upstream.
143 It is natural to want to merge the master branch into a repository; this
150 branch. They will significantly increase your chances of encountering bugs
155 a well-managed branch.
[all …]

12345678910>>...48