Home
last modified time | relevance | path

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

12345678910>>...96

/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/silvermont/
Dpipeline.json3 "BriefDescription": "Counts the number of branch instructions retired...",
7branch instructions retired. Branch prediction predicts the branch target and enables the process…
11 "BriefDescription": "Counts the number of taken branch instructions retired",
15branch instructions retired. Branch prediction predicts the branch target and enables the process…
20 "BriefDescription": "Counts the number of near CALL branch instructions retired",
24branch instructions retired. Branch prediction predicts the branch target and enables the process…
29 "BriefDescription": "Counts the number of far branch instructions retired",
33branch instructions retired. Branch prediction predicts the branch target and enables the process…
38 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired",
42branch instructions retired. Branch prediction predicts the branch target and enables the process…
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/silvermont/
Dpipeline.json4branch instructions retired. Branch prediction predicts the branch target and enables the process…
10 "BriefDescription": "Counts the number of branch instructions retired..."
14branch (JCC) instructions retired. Branch prediction predicts the branch target and enables the pr…
20 "BriefDescription": "Counts the number of JCC branch instructions retired"
24branch (JCC) instructions retired. Branch prediction predicts the branch target and enables the pr…
30 "BriefDescription": "Counts the number of taken JCC branch instructions retired"
34branch instructions retired. Branch prediction predicts the branch target and enables the process…
40 "BriefDescription": "Counts the number of near CALL branch instructions retired"
44branch instructions retired. Branch prediction predicts the branch target and enables the process…
50 "BriefDescription": "Counts the number of near relative CALL branch instructions retired"
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/amdzen4/
Dbranch.json5 "BriefDescription": "L2 branch prediction overrides existing prediction (speculative)."
10 …"BriefDescription": "Dynamic indirect predictions (branch used the indirect predictor to make a pr…
15 …"BriefDescription": "Instruction decoder corrects the predicted target and resteers the branch pre…
20 …"BriefDescription": "Retired branch instructions (all types of architectural control flow changes,…
25 "BriefDescription": "Retired branch instructions mispredicted."
30 …"BriefDescription": "Retired taken branch instructions (all types of architectural control flow ch…
35 "BriefDescription": "Retired taken branch instructions mispredicted."
40 …SRET, plus exceptions and interrupts). Far control transfers are not subject to branch prediction."
50 …cted. Each misprediction incurs the same penalty as a mispredicted conditional branch instruction."
55 …indirect branch instructions mispredicted (only EX mispredicts). Each misprediction incurs the sam…
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/tools/perf/util/intel-pt-decoder/
Dintel-pt-insn-decoder.c32 enum intel_pt_insn_branch branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder() local
40 intel_pt_insn->branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder()
53 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
59 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
63 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
76 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
81 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
85 branch = INTEL_PT_BR_CONDITIONAL; in intel_pt_insn_decoder()
93 branch = INTEL_PT_BR_CONDITIONAL; in intel_pt_insn_decoder()
100 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
[all …]
/kernel/linux/linux-5.10/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
38 intel_pt_insn->branch = INTEL_PT_BR_NO_BRANCH; in intel_pt_insn_decoder()
49 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
54 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
58 branch = INTEL_PT_BR_CONDITIONAL; in intel_pt_insn_decoder()
66 branch = INTEL_PT_BR_CONDITIONAL; in intel_pt_insn_decoder()
73 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
77 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
81 branch = INTEL_PT_BR_INDIRECT; in intel_pt_insn_decoder()
85 branch = INTEL_PT_BR_UNCONDITIONAL; in intel_pt_insn_decoder()
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/goldmont/
Dpipeline.json3 "BriefDescription": "Retired branch instructions (Precise event capable)",
7 …"PublicDescription": "Counts branch instructions retired for all branch types. This is an archite…
11 "BriefDescription": "Retired taken branch instructions (Precise event capable)",
15 "PublicDescription": "Counts the number of taken branch instructions retired.",
24 "PublicDescription": "Counts near CALL branch instructions retired.",
29 "BriefDescription": "Retired far branch instructions (Precise event capable)",
33 …"PublicDescription": "Counts far branch instructions retired. This includes far jump, far call an…
42 "PublicDescription": "Counts near indirect CALL branch instructions retired.",
47 "BriefDescription": "Retired conditional branch instructions (Precise event capable)",
51 … on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when th…
[all …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/tools/perf/tests/shell/
Dtest_brstack.sh2 # Check branch stack sampling
7 # skip the test if the hardware doesn't support branch stack sampling
9 if ! perf record -o- --no-buildid --branch-filter any,save_type,u -- true > /dev/null 2>&1 ; then
24 echo "Testing user branch stack sampling"
26 perf record -o $TMPDIR/perf.data --branch-filter any,save_type,u -- ${TESTPROG} > /dev/null 2>&1
29 # example of branch entries:
43 # some branch types are still not being tested:
47 # first argument <arg0> is the argument passed to "--branch-stack <arg0>,save_type,u"
48 # second argument are the expected branch types for the given filter
53 echo "Testing branch stack filtering permutation ($test_filter_filter,$test_filter_expect)"
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/grandridge/
Dpipeline.json3 …"BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
7 … the processor is resteered due to a branch instruction and the branch instruction successfully re…
11 …Description": "Counts the total number of mispredicted branch instructions retired for all branch
15branch instructions retired. All branch type instructions are accounted for. Prediction of the b…
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/sierraforest/
Dpipeline.json3 …"BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
7 … the processor is resteered due to a branch instruction and the branch instruction successfully re…
11 …Description": "Counts the total number of mispredicted branch instructions retired for all branch
15branch instructions retired. All branch type instructions are accounted for. Prediction of the b…
/kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/goldmont/
Dpipeline.json83 …ut is not limited to those uops issued in the shadow of a miss-predicted branch, those uops that a…
219 …"PublicDescription": "Counts branch instructions retired for all branch types. This is an archite…
225 "BriefDescription": "Retired branch instructions (Precise event capable)"
230 … on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when th…
236 "BriefDescription": "Retired conditional branch instructions (Precise event capable)"
241 "PublicDescription": "Counts the number of taken branch instructions retired.",
247 "BriefDescription": "Retired taken branch instructions (Precise event capable)"
252 …"PublicDescription": "Counts far branch instructions retired. This includes far jump, far call an…
258 "BriefDescription": "Retired far branch instructions (Precise event capable)"
263 …"PublicDescription": "Counts near indirect call or near indirect jmp branch instructions retired.",
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/snowridgex/
Dpipeline.json3 …"BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
7 … the processor is resteered due to a branch instruction and the branch instruction successfully re…
11 "BriefDescription": "Counts the number of near CALL branch instructions retired.",
19 …"BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far …
27 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.",
35 …"BriefDescription": "Counts the number of retired JCC (Jump on Conditional Code) branch instructio…
43 …"BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instruct…
51 "BriefDescription": "Counts the number of near relative CALL branch instructions retired.",
59 "BriefDescription": "Counts the number of near RET branch instructions retired.",
67 …"BriefDescription": "Counts the number of taken JCC (Jump on Conditional Code) branch instructions…
[all …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/elkhartlake/
Dpipeline.json3 …"BriefDescription": "Counts the total number of branch instructions retired for all branch types.",
7 … the processor is resteered due to a branch instruction and the branch instruction successfully re…
11 "BriefDescription": "Counts the number of near CALL branch instructions retired.",
19 …"BriefDescription": "Counts the number of far branch instructions retired, includes far jump, far …
27 "BriefDescription": "Counts the number of near indirect CALL branch instructions retired.",
35 …"BriefDescription": "Counts the number of retired JCC (Jump on Conditional Code) branch instructio…
43 …"BriefDescription": "Counts the number of near indirect JMP and near indirect CALL branch instruct…
51 "BriefDescription": "Counts the number of near relative CALL branch instructions retired.",
59 "BriefDescription": "Counts the number of near RET branch instructions retired.",
67 …"BriefDescription": "Counts the number of taken JCC (Jump on Conditional Code) branch instructions…
[all …]
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-6.6/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 …]
/kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/goldmontplus/
Dpipeline.json3 "BriefDescription": "Retired branch instructions (Precise event capable)",
7 …"PublicDescription": "Counts branch instructions retired for all branch types. This is an archite…
11 "BriefDescription": "Retired taken branch instructions (Precise event capable)",
15 "PublicDescription": "Counts the number of taken branch instructions retired.",
24 "PublicDescription": "Counts near CALL branch instructions retired.",
29 "BriefDescription": "Retired far branch instructions (Precise event capable)",
33 …"PublicDescription": "Counts far branch instructions retired. This includes far jump, far call an…
42 "PublicDescription": "Counts near indirect CALL branch instructions retired.",
47 "BriefDescription": "Retired conditional branch instructions (Precise event capable)",
51 … on Conditional Code/Jump if Condition is Met) branch instructions retired, including both when th…
[all …]
/kernel/linux/linux-5.10/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.
399 * Combine the right initial value (type) with the right branch order
[all …]

12345678910>>...96