Skip to content

Commit 3f986ee

Browse files
author
Ingo Molnar
committed
Merge branch 'perf/urgent' into perf/core, to resolve conflict
Conflicts: tools/perf/perf.h Signed-off-by: Ingo Molnar <[email protected]>
2 parents 55b4ce6 + 629ae2e commit 3f986ee

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

arch/x86/events/intel/uncore_snbep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3606,7 +3606,7 @@ static struct intel_uncore_type skx_uncore_imc = {
36063606
};
36073607

36083608
static struct attribute *skx_upi_uncore_formats_attr[] = {
3609-
&format_attr_event_ext.attr,
3609+
&format_attr_event.attr,
36103610
&format_attr_umask_ext.attr,
36113611
&format_attr_edge.attr,
36123612
&format_attr_inv.attr,

tools/arch/x86/include/asm/cpufeatures.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@
213213
#define X86_FEATURE_SEV ( 7*32+20) /* AMD Secure Encrypted Virtualization */
214214

215215
#define X86_FEATURE_USE_IBPB ( 7*32+21) /* "" Indirect Branch Prediction Barrier enabled */
216+
#define X86_FEATURE_USE_IBRS_FW ( 7*32+22) /* "" Use IBRS during runtime firmware calls */
216217

217218
/* Virtualization flags: Linux defined, word 8 */
218219
#define X86_FEATURE_TPR_SHADOW ( 8*32+ 0) /* Intel TPR Shadow */

tools/include/uapi/linux/kvm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,7 @@ struct kvm_ppc_resize_hpt {
761761
#define KVM_TRACE_PAUSE __KVM_DEPRECATED_MAIN_0x07
762762
#define KVM_TRACE_DISABLE __KVM_DEPRECATED_MAIN_0x08
763763
#define KVM_GET_EMULATED_CPUID _IOWR(KVMIO, 0x09, struct kvm_cpuid2)
764+
#define KVM_GET_MSR_FEATURE_INDEX_LIST _IOWR(KVMIO, 0x0a, struct kvm_msr_list)
764765

765766
/*
766767
* Extension capability list.
@@ -934,6 +935,7 @@ struct kvm_ppc_resize_hpt {
934935
#define KVM_CAP_S390_AIS_MIGRATION 150
935936
#define KVM_CAP_PPC_GET_CPU_CHAR 151
936937
#define KVM_CAP_S390_BPB 152
938+
#define KVM_CAP_GET_MSR_FEATURES 153
937939

938940
#ifdef KVM_CAP_IRQ_ROUTING
939941

tools/perf/builtin-stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -943,7 +943,7 @@ static void print_metric_csv(void *ctx,
943943
char buf[64], *vals, *ends;
944944

945945
if (unit == NULL || fmt == NULL) {
946-
fprintf(out, "%s%s%s%s", csv_sep, csv_sep, csv_sep, csv_sep);
946+
fprintf(out, "%s%s", csv_sep, csv_sep);
947947
return;
948948
}
949949
snprintf(buf, sizeof(buf), fmt, val);

tools/perf/util/auxtrace.c

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
#include "sane_ctype.h"
6161
#include "symbol/kallsyms.h"
6262

63+
static bool auxtrace__dont_decode(struct perf_session *session)
64+
{
65+
return !session->itrace_synth_opts ||
66+
session->itrace_synth_opts->dont_decode;
67+
}
68+
6369
int auxtrace_mmap__mmap(struct auxtrace_mmap *mm,
6470
struct auxtrace_mmap_params *mp,
6571
void *userpg, int fd)
@@ -762,6 +768,9 @@ int auxtrace_queues__process_index(struct auxtrace_queues *queues,
762768
size_t i;
763769
int err;
764770

771+
if (auxtrace__dont_decode(session))
772+
return 0;
773+
765774
list_for_each_entry(auxtrace_index, &session->auxtrace_index, list) {
766775
for (i = 0; i < auxtrace_index->nr; i++) {
767776
ent = &auxtrace_index->entries[i];
@@ -892,12 +901,6 @@ int perf_event__synthesize_auxtrace_info(struct auxtrace_record *itr,
892901
return err;
893902
}
894903

895-
static bool auxtrace__dont_decode(struct perf_session *session)
896-
{
897-
return !session->itrace_synth_opts ||
898-
session->itrace_synth_opts->dont_decode;
899-
}
900-
901904
int perf_event__process_auxtrace_info(struct perf_tool *tool __maybe_unused,
902905
union perf_event *event,
903906
struct perf_session *session)

tools/perf/util/trigger.h

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* States and transits:
1313
*
1414
*
15-
* OFF--(on)--> READY --(hit)--> HIT
15+
* OFF--> ON --> READY --(hit)--> HIT
1616
* ^ |
1717
* | (ready)
1818
* | |
@@ -27,8 +27,9 @@ struct trigger {
2727
volatile enum {
2828
TRIGGER_ERROR = -2,
2929
TRIGGER_OFF = -1,
30-
TRIGGER_READY = 0,
31-
TRIGGER_HIT = 1,
30+
TRIGGER_ON = 0,
31+
TRIGGER_READY = 1,
32+
TRIGGER_HIT = 2,
3233
} state;
3334
const char *name;
3435
};
@@ -50,7 +51,7 @@ static inline bool trigger_is_error(struct trigger *t)
5051
static inline void trigger_on(struct trigger *t)
5152
{
5253
TRIGGER_WARN_ONCE(t, TRIGGER_OFF);
53-
t->state = TRIGGER_READY;
54+
t->state = TRIGGER_ON;
5455
}
5556

5657
static inline void trigger_ready(struct trigger *t)

0 commit comments

Comments
 (0)