ctrlmondata.c
Native buffer comparison callAssigns a negative errno constant
SHA-256a30b37cbc4b5e7798ce85c33d323e5a50cd1689ad4a2784d14db913a766746dd
MaleculeO(Er)H(Db₂)
Evidence
10:36… m>
11 *
12 * More information about RDT be found in the Intel (R) x86 Architecture
13 * Software Developer Manual June 2016, volume 3, section 17.17.
14 */
15
16#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
17
18#include <linux/cpu.h>
19#include <linux/kernfs.h>
20#include <linux/math.h>
21#include <linux/seq_file.h>
22#include <linux/slab.h>
23#include <linux/tick.h>
24
25#include "internal.h"
26
27struct rdt_parse_data {
⋯6 lines
87:25… {
88 rdt_last_cmd_printf("Duplicate domain %d\n", d->hdr.id);
89 return -EINVAL;
90 }
91
⋯6 lines
329:17… ed instead.
330 */
331 if (rdtgrp->mode == RDT_MODE_PSEUDO_LOCKED) {
332 ret = -EINVAL;
333 rdt_last_cmd_puts("Resource group is pseudo-locked\n");
334 goto out;
⋯6 lines
341 if (!tok) {
342 rdt_last_cmd_puts("Missing ':'\n");
343 ret = -EINVAL;
344 goto out;
345 }
⋯4 lines
475:18… ock(of->kn);
476 return -ENOENT;
477 }
478 rdt_last_cmd_clear();
479
480 if (!strcmp(buf, "mbm_local_bytes")) {
481 if (resctrl_is_mon_event_enabled(QOS_L3_MBM_LOCAL_EVENT_ID))
482 rdtgrp->mba_mbps_event = QOS_L3_MBM_LO …
819:45… );
820 list_for_each_entry(d, &s->res->ctrl_domains, hdr.list)
821 memcpy(&d->staged_config[peer_type],
822 &d->staged_config[s->conf_type],
823 sizeof(d->staged_config[0]));
824 }
825
826 ret = res …