forked from Minki/linux
- Rename a perf memory level event define to denote it is of CXL type
- Add Alder and Raptor Lakes support to RAPL - Make sure raw sample data is output with tracepoints -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEzv7L6UO9uDPlPSfHEsHwGGHeVUoFAmNeRnEACgkQEsHwGGHe VUpmTRAAmLvQhTN15L4qr6BSIUhlOk1xmM4pKtUXfpzX9Nki+bhPvH8sczaUXg1N 90u6pD8+uOIFsd2s+bUVyR/h3cWnjpy9Or1oSYlNTTPxwlqC1XsLqsWjy7/AA91d YAUZNfmIsBNTUDtjygslnZ2yZIIPWXGI5utvrkS3W2cbfZtQhuDVTo5KAnx3+0fC inKfiO+lAEouNu9l/+GdqPhgiDVB+oK12ROMosAr9++Ewuf61Jnk0nVEynNVoGT0 OLxbNT6xU3TlOm/n2zwmWnM95ZJ9sM5SEJg+c55VZ9biTAgayd+7Hw8H3CAqIhdD utFoxkQpblp7Lq6IporcfjpGISA4WdbaiJaMN56azucGcZsk6VXUzNk6AimXvqjP d8z7nVYDGDxYoIWyoSfO7XuIhqek38KRTEbl3qvyRZoF/FRjaWCvZeir9W32mRbx bVKPTQ8FgSUtkBLhGZrldHP8PRsw1nf60wJb19p8s5aWNMzimgUN0As0kf78k6l+ fapTvhuU84EDVjiUS7BTrMq1r3ieaZiN2Ofi4EAG8c4R3S4C3hHKFQH3suIOp3vf UpCyYi+29LfdTgiuNX+efklUSu5T2EccJXke07CJQM5BBppvuPqeG7YJET5/YDuz tSPIbTZ9lxomeNWJSu9cyuynqPIS0f/j6FtpodA7MY1f/AX7OHM= =zS3P -----END PGP SIGNATURE----- Merge tag 'perf_urgent_for_v6.1_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip Pull perf fixes from Borislav Petkov: - Rename a perf memory level event define to denote it is of CXL type - Add Alder and Raptor Lakes support to RAPL - Make sure raw sample data is output with tracepoints * tag 'perf_urgent_for_v6.1_rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: perf/mem: Rename PERF_MEM_LVLNUM_EXTN_MEM to PERF_MEM_LVLNUM_CXL perf/x86/rapl: Add support for Intel Raptor Lake perf/x86/rapl: Add support for Intel AlderLake-N perf: Fix missing raw data on tracepoint events
This commit is contained in:
commit
434766058e
@ -801,7 +801,7 @@ static void perf_ibs_get_mem_lvl(union ibs_op_data2 *op_data2,
|
|||||||
/* Extension Memory */
|
/* Extension Memory */
|
||||||
if (ibs_caps & IBS_CAPS_ZEN4 &&
|
if (ibs_caps & IBS_CAPS_ZEN4 &&
|
||||||
ibs_data_src == IBS_DATA_SRC_EXT_EXT_MEM) {
|
ibs_data_src == IBS_DATA_SRC_EXT_EXT_MEM) {
|
||||||
data_src->mem_lvl_num = PERF_MEM_LVLNUM_EXTN_MEM;
|
data_src->mem_lvl_num = PERF_MEM_LVLNUM_CXL;
|
||||||
if (op_data2->rmt_node) {
|
if (op_data2->rmt_node) {
|
||||||
data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
|
data_src->mem_remote = PERF_MEM_REMOTE_REMOTE;
|
||||||
/* IBS doesn't provide Remote socket detail */
|
/* IBS doesn't provide Remote socket detail */
|
||||||
|
@ -806,7 +806,11 @@ static const struct x86_cpu_id rapl_model_match[] __initconst = {
|
|||||||
X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, &model_skl),
|
X86_MATCH_INTEL_FAM6_MODEL(COMETLAKE, &model_skl),
|
||||||
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &model_skl),
|
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE, &model_skl),
|
||||||
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, &model_skl),
|
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_L, &model_skl),
|
||||||
|
X86_MATCH_INTEL_FAM6_MODEL(ALDERLAKE_N, &model_skl),
|
||||||
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr),
|
X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, &model_spr),
|
||||||
|
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE, &model_skl),
|
||||||
|
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_P, &model_skl),
|
||||||
|
X86_MATCH_INTEL_FAM6_MODEL(RAPTORLAKE_S, &model_skl),
|
||||||
{},
|
{},
|
||||||
};
|
};
|
||||||
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);
|
MODULE_DEVICE_TABLE(x86cpu, rapl_model_match);
|
||||||
|
@ -1337,7 +1337,7 @@ union perf_mem_data_src {
|
|||||||
#define PERF_MEM_LVLNUM_L3 0x03 /* L3 */
|
#define PERF_MEM_LVLNUM_L3 0x03 /* L3 */
|
||||||
#define PERF_MEM_LVLNUM_L4 0x04 /* L4 */
|
#define PERF_MEM_LVLNUM_L4 0x04 /* L4 */
|
||||||
/* 5-0x8 available */
|
/* 5-0x8 available */
|
||||||
#define PERF_MEM_LVLNUM_EXTN_MEM 0x09 /* Extension memory */
|
#define PERF_MEM_LVLNUM_CXL 0x09 /* CXL */
|
||||||
#define PERF_MEM_LVLNUM_IO 0x0a /* I/O */
|
#define PERF_MEM_LVLNUM_IO 0x0a /* I/O */
|
||||||
#define PERF_MEM_LVLNUM_ANY_CACHE 0x0b /* Any cache */
|
#define PERF_MEM_LVLNUM_ANY_CACHE 0x0b /* Any cache */
|
||||||
#define PERF_MEM_LVLNUM_LFB 0x0c /* LFB */
|
#define PERF_MEM_LVLNUM_LFB 0x0c /* LFB */
|
||||||
|
@ -9846,6 +9846,7 @@ void perf_tp_event(u16 event_type, u64 count, void *record, int entry_size,
|
|||||||
|
|
||||||
perf_sample_data_init(&data, 0, 0);
|
perf_sample_data_init(&data, 0, 0);
|
||||||
data.raw = &raw;
|
data.raw = &raw;
|
||||||
|
data.sample_flags |= PERF_SAMPLE_RAW;
|
||||||
|
|
||||||
perf_trace_buf_update(record, event_type);
|
perf_trace_buf_update(record, event_type);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user