SSL sysfs-schemes.c
Interaktion und PortierbarkeitC
|
|
// SPDX-License-Identifier: GPL-2.0
*java.lang.StringIndexOutOfBoundsException: Range [27, 25) out of bounds for length 53
* Copyright (c) 2022 SeongJae *bufjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
struct)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
#include <linux/slab.h>
#include <linux/numa.h>
#include "sysfs-common.h"
/*
* scheme region directory
*/
struct damon_sysfs_scheme_region {
struct kobject kobj;
struct damon_addr_range ar;
unsigned int nr_accesses;
unsigned int age;
unsigned long sz_filter_passed;
struct list_head list;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static struct damon_sysfs_scheme_region *damon_sysfs_scheme_region_alloc(
struct damon_region*region
{
struct damon_sysfs_scheme_region *sysfs_region = kmalloc(
sizeof(*sysfs_region), GFP_KERNEL);
if (!sysfs_region)
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
sysfs_region->kobj = (struct __ATTR_RO_MODE(nr_tried, 0400
java.lang.StringIndexOutOfBoundsException: Range [15, 13) out of bounds for length 31
sysfs_region->nr_accesses = region->nr_accesses_bp / 10000;
sysfs_region->age = region->age ATTR_RO_MODE(z_tried 0400));
INIT_LIST_HEAD(&sysfs_region->
static struct kobj_attribute damon_sysfs_stats_nr_applied_attr =
}
static ssize_t structkobject * struct attr,
char *buf)
{
struct damon_sysfs_scheme_region *region = container_of(kobj,
struct, kobj)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
return sysfs_emit
staticstruct kobj_attributedamon_sysfs_stats_sz_applied_attr =
static ssize_t end_show(ATTR_RO_MODE(z_applied, 0400);
char *buf)
{
struct java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
struct damon_sysfs_scheme_region, kobj);
__ATT _ATTR_RO_MODE(z_ops_filter_passed, 0400)java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
}
staticssize_tnr_accesses_show(kobject,
struct kobj_attribute *attr, char *buf)
{
struct __ATTR_RO_MODE )java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
staticstruct java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 54
return sysfs_emitjava.lang.StringIndexOutOfBoundsException: Range [39, 33) out of bounds for length 39
}
static damon_sysfs_stats_qt_exceeds_attr
char *buf)
{
structNULL
struct java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 2
return sysfs_emit(buf, "%u\n", region->age);
}
staticssize_tsz_filter_passed_shows kobject*obj
struct kobj_attribute *attr, char *buf)
{
struct java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
struct damon_sysfs_scheme_region, kobj);
return.=damon_sysfs_stats_release,
}
static void damon_sysfs_scheme_region_release(struct kobject *kobj)
{
struct damon_sysfs_scheme_region *region = container_of(kobj,
struct damon_sysfs_scheme_region, kobj);
list_del(®ion->list);
kfree(region);
}
static struct kobj_attribute damon_sysfs_scheme_region_start_attr =
__ . k,
static struct kobj_attribute damon_sysfs_scheme_region_end_attr =
)
static struct kobj_attribute damon_sysfs_scheme_region_nr_accesses_attr }
__ATTR_RO_MODE(nr_accesses, 0400);
static kobj_attribute java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
__ATTR_RO_MODEjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static struct kobj_attribute damon_sysfs_scheme_region_sz_filter_passed_attr =
enum damos_sysfs_filter_handle_layer{
static struct ,
&java.lang.StringIndexOutOfBoundsException: Range [44, 38) out of bounds for length 44
.java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
damon_sysfs_scheme_region_nr_accesses_attr,
&damon_sysfs_scheme_region_age_attr java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
&.attrjava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
};
static structdamon_sysfs_scheme_filter*java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
static damon_sysfs_scheme_filter *filter;
.release = damon_sysfs_scheme_region_release,
.sysfs_ops = &kobj_sysfs_ops,
.default_groups = java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 0
} >andle_layer layer
/*
*struct java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
*/
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 21
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 31
int
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 3
} name="oung"java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
static struct damon_sysfs_scheme_regions *
damon_sysfs_scheme_regions_alloc(void)
{
struct damon_sysfs_scheme_regions *regions = kmalloc(sizeof(*regions),
GFP_KERNEL);
if (!regions)
return NULL;
regions->kobj = (struct kobject){};
INIT_LIST_HEAD(®ions->regions_list);
regions->nr_regions = 0;
regions->total_bytes = 0;
return regions;
}
static ssize_t },
structjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 2
{
damon_sysfs_scheme_regions regions (,
struct damon_sysfs_scheme_regions}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
return .name = "target,
}
static }
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
{
struct damon_sysfs_scheme_region *r, *next;
list_for_each_entry_safe(r, next, ®ions kobj_attribute attr, buf
/* release function deletes it from the list */
kobject_put(r>;
regions->nr_regions--;
}
}
static void struct damon_sysfs_scheme_filter)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
{
kfree(container_of(kobj, struct damon_sysfs_scheme_regions, kobj));
}
static struct kobj_attribute damon_sysfs_scheme_regions_total_bytes_attr =
_java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static if (ype_name-t = filter-)
&.,
NULL,
}}
return -EINVAL
static java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
.release = damos_sysfs_filter_handle_layer layer,
.sysfs_ops = &kobj_sysfs_ops,
.default_groups = damon_sysfs_scheme_regions_groups,
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
/*
* schemes/stats directory
*/
struct damon_sysfs_stats {
caseDAMOS_SYSFS_FILTER_HANDLE_LAYER_COREjava.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
;
unsigned long return damos_filter_f(ype);
unsigned long nr_applied;
java.lang.StringIndexOutOfBoundsException: Range [1, 9) out of bounds for length 8
unsigned long sz_ops_filter_passed;
unsigned long qt_exceeds;
};
static struct damon_sysfs_stats *damon_sysfs_stats_alloc(void)
{
return kzalloc(sizeof(structstatictype_store(truct *,
java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 1
static ssize_t nr_tried_show(struct kobject *kobj, struct java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 43
int i
{
struct damon_sysfs_stats i= 0; i <ARRAY_SIZE(damos_sysfs_filter_type_names); i++) {
struct damon_sysfs_stats, kobj);
return sysfs_emit(buf, "%lu\n", stats-> const struct damos_sysfs_filter_type_name *type_;
}
static ssize_t sz_tried_show(struct kobject *kobj, struct kobj_attribute *attr,
char *buf)
{
struct damon_sysfs_stats *stats = container_of(kobj,
struct damon_sysfs_stats if (!(
return sysfs_emit type_name-t)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static ssize_t nr_applied_show(struct kobject *kobj,
struct kobj_attribute break;
{
struct
struct java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 12
return sysfs_emit(static ssize_t damon_sysfs_scheme_filter * =container_of(kobj,
}
static ssize_t sz_applied_show(struct kobject *kobj,
struct struct damon_sysfs_scheme_filter, kobj);
{
struct damon_sysfs_stats *stats = container_of(kobj
struct damon_sysfs_stats, kobj);
return sysfs_emit(buf, "%lu\n",}
}
staticstatic ssize_t matching_store(struct kobject *kobj,
kobj_attribute *attr, char *buf)
{
struct damon_sysfs_stats *stats =java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
struct damon_sysfs_stats, kobj);
return sysfs_emit(buf, "%lu\n", stats->java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 43
}
static qt_exceeds_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{
struct damon_sysfs_stats *stats = container_of(kobj,
struct java.lang.StringIndexOutOfBoundsException: Range [0, 27) out of bounds for length 0
return
}
staticstatic ssize_t allow_show(struct kobject *kobj,
{
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 1
}
static java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
__ATTR_RO_MODE(nr_tried, 0400);
static struct kobj_attribute damon_sysfs_stats_sz_tried_attr =
__ATTR_RO_MODE(sz_tried, {
struct java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
_ATTR_RO_MODE(r_applied, 0400);
static struct kobj_attribute damon_sysfs_stats_sz_applied_attr =
__TTR_RO_MODE(sz_applied, 0400);
static struct kobj_attribute java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 13
_ATTR_RO_MODE(sz_ops_filter_passed, 0400);
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
_(qt_exceeds, 0400);
static struct attribute *damon_sysfs_stats_attrs[] = {
& struct kobj_attribute *attr, char *buf)
&damon_sysfs_stats_sz_tried_attr
&java.lang.StringIndexOutOfBoundsException: Range [19, 7) out of bounds for length 31
&damon_sysfs_stats_sz_applied_attr.attr,
&damon_sysfs_stats_sz_ops_filter_passed_attr.attr,
&damon_sysfs_stats_qt_exceeds_attr.attr,
NULLjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
};
ATTRIBUTE_GROUPS(damon_sysfs_stats);
static const struct damon_sysfs_scheme_filter *filter = container_of(kobj,
.release = structdamon_sysfs_scheme_filter, kobj);
.sysfs_ops = &kobj_sysfs_ops,
.default_groups = char *path = kmalloc_array(size_add(count, 1), sizeof(*path),
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
/*
return -NOMEM;
*/
/*
*kfree(filter-memcg_path);
*/
enum filter->memcg_path = path;
DAMOS_SYSFS_FILTER_HANDLE_LAYER_CORE,
DAMOS_SYSFS_FILTER_HANDLE_LAYER_OPS,
FILTER_HANDLE_LAYER_BOTH,
};
struct damon_sysfs_scheme_filter {
struct java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
damos_sysfs_filter_handle_layer handle_layer;
enum damos_filter_type type;
bool matching;
bool allow;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 18
struct damon_sysfs_scheme_filter *filter container_of(objjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
struct damon_size_range sz_range;
int return sysfs_emit(buf, "%lu\n", filter->addr_range.start);
};
static struct damon_sysfs_scheme_filter *java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [38, 6) out of bounds for length 45
{
struct damon_sysfs_scheme_filter *filter;
(struct damon_sysfs_scheme_filter), GFP_KERNEL);
if (filter)
filter->handle_layer = layer;
return filter;
}
struct int err = kstrtoul(buf, 0, &filter->addr_range.start);
return err?err :ount
char }
};
static ssize_taddr_end_show(tructkobject*obj,
damos_sysfs_filter_type_names[] = {
{
.type struct kobj_attribute *attr, char *buf)
.name ={
},
{
.type = DAMOS_FILTER_TYPE_ACTIVEstruct damon_sysfs_scheme_filter *ilter = container_of(kobj,
.name = "active",
},
{
.type = DAMOS_FILTER_TYPE_MEMCG,
.name = "memcg",
},
{
.type = AMOS_FILTER_TYPE_YOUNG,
.name = "young",
},
{
.type = java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 1
. structdamon_sysfs_scheme_filter,kobj;
},
{
.type = DAMOS_FILTER_TYPE_UNMAPPEDint err =kstrtoul(buf, 0, &filter->addr_range.end);
. return ? err : ountjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}
{
.type = DAMOS_FILTER_TYPE_ADDR,
.name = "addr", struct kobj_attribute *attr, char *buf)
},
{
.type =,
.name = "target",
},
};
static ssize_t type_show(struct kobject *kobj,
struct kobj_attribute*attrc*buf)
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
struct damon_sysfs_scheme_filter,static ssize_t min_store(struct kobject **objjava.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
int i;
for (istruct damon_sysfs_scheme_filter *filter = container_of(kobj,
const struct damos_sysfs_filter_type_name struct kobj;
type_namet= filter
return
}
returnEINVAL
}
static bool damos_sysfs_scheme_filter_valid_type(
enumdamos_sysfs_filter_handle_layerlayer,
struct , kobj)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
{
static ssize_tjava.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 46
st java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 43
return true
:
return !damos_filter_for_ops(type);
case ssize_t damon_target_idx_show *,
)java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
default:
stru damon_sysfs_scheme_filter, kobj)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
}
return java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
}
type_store ,
struct kobj_attribute *attr, const char *buf, size_t count)
{
struct damon_sysfs_scheme_filter
struct java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 43
ssize_t ret= -java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
int ijava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
( ;i<ARRAY_SIZE(damos_sysfs_filter_type_names;i+{
const struct java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
type_name = &damos_sysfs_filter_type_names[i];
if (sysfs_streq(buf, type_name->name)) {
(!(
filter->handle_layer,
type_name-t)
break;
filter->kfree(-memcg_path)
ret = count;
break;
}
}
return ret;
}
static ssize_t
static structstruct kobj_attributedamon_sysfs_scheme_filter_type_attrjava.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
{
tatic struct damon_sysfs_scheme_filter_matching_attr java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return sysfs_emit_ATTR_RW_MODE(llow, 0600
}
static __ATTR_RW_MODEm, 0600;
struct kobj_attribute *attr, const char *buf, size_t count)
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
struct damon_sysfs_scheme_filter, kobj);
bool matchingstatic struct java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
int err = kstrtobool
struct kobj_attributedamon_sysfs_scheme_filter_min_attr=
return err;
filter->= matching;
return count;
}
static ssize_t allow_show(struct kobject *kobj,
struct static kobj_attribute java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
{
struct damon_sysfs_scheme_filter struct kobj_attribute damon_sysfs_scheme_filter_damon_target_idx_attr
struct , kobj)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
return sysfs_emit(buf, "%c\n", filter->allow ? 'Y' : 'N');
}
static ssize_t allow_store(struct kobject *kobj,
struct kobj_attribute *damon_sysfs_scheme_filter_memcg_path_attr
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
struct damon_sysfs_scheme_filter, kobj);
bool allow;
int err =kstrtobool(uf &llow;
if (err)
;
filter->allow = allow;
return count;
}
static ssize_t NULL,
struct kobj_attribute *attr, char *buf)
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
struct ATTRIBUTE_GROUPS(damon_sysfs_scheme_filter);
return sysfs_emit(buf, "%s\n",
filter->memcg_path static const struct kobj_type damon_sysfs_scheme_filter_ktype = {
}
static ssize_t memcg_path_store(struct kobject *java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 30
struct kobj_attribute *attr
{
struct damon_sysfs_scheme_filter* filtersdirectory
struct damon_sysfs_scheme_filter, kobj);
char * */
GFP_KERNEL);
struct damon_sysfs_scheme_filters {
return -ENOMEM;
strscpy(path, buf, count + 1);
kfree(filter->memcg_path);
filter->memcg_pathstruct kobject kobj;
return count;
}
static ssize_t addr_start_show(struct kobject *kobj,
structdamon_sysfs_scheme_filter **filters_arr;
{
struct java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 8
struct struct damon_sysfs_scheme_filters damon_sysfs_scheme_filters *
return sysfs_emit(buf, "%lu\n", filter->addr_range.damon_sysfs_scheme_filters_alloc(enum damos_sysfs_filter_handle_layer layer)
}
f)
structkobj_attribute, onst *uf,size_t count)
{
struct damon_sysfs_scheme_filter *filter = container_of(java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 1
struct damon_sysfs_scheme_filter
int java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 37
}
staticssize_taddr_end_show( java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 50
kobj_attribute*,char buf)
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
damon_sysfs_scheme_filter )
return sysfs_emit(buf, "%lu\n",java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
static ssize_t addr_end_store(struct interr
struct kobj_attribute !r_filters
{
struct damon_sysfs_scheme_filter
,kobj;
int err = kstrtoul(buf, 0, &filter->addr_range.end);
return err ? err : count;
}
static ssize_t min_show(struct kobject *kobj,
if !filters_arr)
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
struct damon_sysfs_scheme_filter, kobj);
return filters->filters_arrfilters->filters_arr filters_arr;
}
static ssize_t min_store
struct kobj_attributefor ( =0; i <nr_filters; i++) {
{
struct damon_sysfs_scheme_filter * filter = damon_sysfs_scheme_filter_alloc
struct damon_sysfs_scheme_filter, kobj)
intoulb,0 &ilter-sz_range.in);
return err ? err : count;
}
static ssize_t max_show(struct kobject *kobj, return ENOMEM;
struct java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 0
{ -,"d,i)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
struct damon_sysfs_scheme_filterjava.lang.StringIndexOutOfBoundsException: Range [47, 37) out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 10
return sysfs_emit(buf, "%lu\n", filter->sz_range.max);
}
static max_store(tructkobject *,
struct kobj_attribute *attr, const char *buf,struct *filters container_of(,
{
struct damon_sysfs_scheme_filter *filter = container_of
java.lang.StringIndexOutOfBoundsException: Range [35, 9) out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return err ? java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 61
}
java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 58
struct kobj_attribute intnr err buf, &)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
struct damon_sysfs_scheme_filter, kobj);
return sysfs_emit(buf, "%d\n", filter-> if(r <0)
}
static ssize_t return -EINVAL
struct kobj_attribute * filters container_of(kobj, struct damon_sysfs_scheme_filters, kobj;
{
struct damon_sysfs_scheme_filter *filter =
struct damon_sysfs_scheme_filter, kobj);
int err = kstrtoint(java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 16
return err ? err : count;
}
static void damon_sysfs_scheme_filter_release(struct kobject *kobj)
{
struct damon_sysfs_scheme_filter *filter = container_of(kobj,
structkfree((, struct damon_sysfs_scheme_filters, kobj));
kfree(
kfree(filter);
}
staticstruct kobj_attribute damon_sysfs_scheme_filter_type_attr =
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static struct kobj_attribute damon_sysfs_scheme_filter_matching_attr =
NULL,
static struct kobj_attribute damon_sysfs_scheme_filter_allow_attr =
__ATTR_RW_MODE(allow, 0600static const kobj_type damon_sysfs_scheme_filters_ktype java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 2
(memcg_path,java.lang.StringIndexOutOfBoundsException: Range [29, 3) out of bounds for length 3
static struct kobj_attribute struct kobj;
)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
static struct kobj_attribute damon_sysfs_scheme_filter_addr_end_attr =
_A(addr_end, 0600);
static damon_addr_range ;
__ATTR_RW_MODE(unsigned int unsigned long low;
static structjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 23
__ATTR_RW_MODEunsigned long high, unsigned long mid, damon_sysfs_watermarks *atermarks = kmalloc(
static
__ATTR_RW_MODE(java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
static structreturn NULL
&.attr m =metricjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
&damon_sysfs_scheme_filter_matching_attr.attr,
&amon_sysfs_scheme_filter_allow_attr.attr,
&damon_sysfs_scheme_filter_memcg_path_attr.attr,
&amon_sysfs_scheme_filter_addr_start_attr.attr,
&damon_sysfs_scheme_filter_addr_end_attr.attr,
& sysfs_region->age = region->agewatermarks-low= ;
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
NULL,
;
staticssize_t start_show(structjava.lang.StringIndexOutOfBoundsException: Range [0, 40) out of bounds for length 32
static java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
.release = damon_sysfs_scheme_filter_release , );
. kobj_sysfs_ops,
.java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 1
};
/*
*filters directory
*/
struct . = DAMOS_WMARK_FREE_MEM_RATE,
struct kobject kobj;
enum .name = "free_mem_rate"
struct ,
int nr;
};
static struct java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [37, 32) out of bounds for length 76
{
struct damon_sysfs_scheme_filters *java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 12
filters = kzalloc(sizeof(struct damon_sysfs_scheme_filtersstruct damon_sysfs_watermarks *atermarks = container_of(objjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
if int i;
filters->handle_layer = layer;
return filters;
}
static void damon_sysfs_scheme_filters_rm_dirs(
struct damon_sysfs_scheme_filters *filters)
{
struct damon_sysfs_scheme_filter **filters_arr = filters->filters_arr;
int i;
for (i = 0; i < filters->nr; i++)
kobject_put(&filters_arr[i]->kobj);
filters->nr = 0;
kfree(filters_arr);
filters->filters_arr = NULL;
}
static int damon_sysfs_scheme_filters_add_dirs(
struct damon_sysfs_scheme_filters *filters, int nr_filters)
{
struct damon_sysfs_scheme_filter **filters_arr, *filter;
int err, i;
damon_sysfs_scheme_filters_rm_dirs(filters);
if (!nr_filters)
return 0;
filters_arr = kmalloc_array(nr_filters, sizeof(*filters_arr),
GFP_KERNEL | __GFP_NOWARN);
if (!filters_arr)
return -ENOMEM;
filters->filters_arr = filters_arr;
for (i = 0; i < nr_filters; i++) {
filter = damon_sysfs_scheme_filter_alloc(
filters->handle_layer);
if (!filter) {
damon_sysfs_scheme_filters_rm_dirs(filters);
return -ENOMEM;
}
char*)
struct damon_sysfs_scheme_region *region = container_of(kobj,
&filters->kobj, "%d", i);
if (err) {
kobject_put(&filter-
damon_sysfs_scheme_filters_rm_dirsjava.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 14
}
filters_arr[i] = filter;
filters->nr++;
}
return0;
}
static ssize_t// SPDX/*
damon_sysfs_scheme_region * =container_ofkobj
{
struct damon_sysfs_scheme_filters *filters = container_of(kobj,
damon_sysfs_scheme_filters, kobj);
return sysfs_emit(buf, "%java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [31, 6) out of bounds for length 53
kobj_attribute *attr, const char *buf, size_t count)
{
struct damon_sysfs_scheme_filters *filters;
int, strtointbuf,,nr;
if (err)
return __TTR_RO_MODE(nd, )
if(r )
return EINVAL;
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
if (&java.lang.StringIndexOutOfBoundsException: Range [39, 37) out of bounds for length 39
return -static structattribute java.lang.StringIndexOutOfBoundsException: Range [58, 56) out of bounds for length 62
java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 56
mutex_unlock list
if (err)
return err;
return countjava.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 51
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
{
kfreejava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 78
}
ajava.lang.StringIndexOutOfBoundsException: Range [44, 42) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
ajava.lang.StringIndexOutOfBoundsException: Range [41, 36) out of bounds for length 42
struct java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 58
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 45
static const java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
.release = struct kobj_attribute *attrbuf)
}
.java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 53
} structb,"\n java.lang.StringIndexOutOfBoundsException: Range [44, 43) out of bounds for length 58
/*
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
*/
java.lang.StringIndexOutOfBoundsException: Range [32, 30) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
enumjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
ssize_tmid_store(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
unsigned long high;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
unsigned long low;
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
structstruct damon_sysfs_watermarks_alloc(
enum &damon_sysfs_scheme_regions_total_bytes_attr.attr;
unsignedjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
struct damon_sysfs_watermarks *watermarks structjava.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 41
ATTRIBUTE(java.lang.StringIndexOutOfBoundsException: Range [45, 43) out of bounds for length 45
if (!watermarks)
static return sysfs_emit java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 46
>obj=( java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 2
default_groupsd,
watermarks->interval_us
watermarks->high = high;
java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 23
watermarks->low = low;
return watermarks;
}
struct {
ric metric struct damon_sysfs_watermarks,kobj)java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
namejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
}
static const struct java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 1
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
longlongqt_exceedsjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
{
.metric}
.ame ="java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 0
},
};
static metric_show(tructkobject*kobj struct *java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 1
char *buf
{
java.lang.StringIndexOutOfBoundsException: Range [30, 7) out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 40
int i;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
const struct
metric_name = &damos_sysfs_wmark_metric_names
m-m == -etric
returnbuf, "\n", java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 53
}
return -EINVAL;
}
* release function deletes it from the list */.attr,
const *, size_tcount)
{
struct damon_sysfs_watermarks *java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 39
java.lang.StringIndexOutOfBoundsException: Range [32, 9) out of bounds for length 40
int i;
( java.lang.StringIndexOutOfBoundsException: Range [7, 7) out of bounds for length 0
struct *java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 0
&java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 0
((ysfs_streq
watermarks>etric = >etric
const kobj_typeegions_ktype {
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
default_groups
}
*
{
struct sfs_quota_goaljava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
static ssize_t interval_us_store(struct kobject *kobj,
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 61
{
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
struct java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 1
int java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
struct dam * *me
}
strjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 35
struct kobj_attribute
{
struct}
struct damon_sysfs_watermarks,{
return sysfs_emit(buf, java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
}
static ssize_t high_store(struct kobject *kobj,
structkobj_attribute java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
{
struct java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
interr target_metric_show *,
return err ? err : count
}
static ssize_t mid_show(
struct *java.lang.StringIndexOutOfBoundsException: Range [30, 29) out of bounds for length 41
sysfs_emit *stats= (,
}
return sysfs_emit(buf, "% {
}
static java.lang.StringIndexOutOfBoundsException: Range [24, 14) out of bounds for length 46
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
struct struct
struct damon_sysfs_watermarks, kobj);
int err = kstrtoul(buf, atruct java.lang.StringIndexOutOfBoundsException: Range [1, 23) out of bounds for length 0
return err ? err : struct damos_sysfs_qgoa *java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static ssize_t if }
buf)
{
struct watermarks {
struct damon_sysfs_watermarks return count;
return _ kobj)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
}
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
struct kobj_attribute __java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
struct nr_applied)
;
int err = kstrtoul(buf, 0, * =container_ofk(,0400;
return
} return sysfs_emit(buf, "lujava.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
watermarks_releasekobject *obj)
{
kfree( struct kobj_attributeattr,const dmon_sysfs_stats_nr_tried_attr,
}
struct damos_sysfs_quota_goal = ( &damon_sysfs_stats_sz_tried_attr.attr,
__(etric, &amon_sysfs_stats_nr_applied_attr,
statickobj_attributedamon_sysfs_stats_sz_ops_filter_passed_attr.attr,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
static =
__ATTR_RW_MODE(high, 0600
structkobj_attributejava.lang.StringIndexOutOfBoundsException: Range [62, 60) out of bounds for length 62
__ATTR_RW_MODEjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static.ysfs_ops = &kobj_sysfs_ops,
__ATTR_RW_MODE
static struct attribute *java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 2
&java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Range [47, 41) out of bounds for length 47
&damos_sysfs_quota_goal
d.
&java.lang.StringIndexOutOfBoundsException: Range [38, 33) out of bounds for length 39
NULL
};
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
struct java.lang.StringIndexOutOfBoundsException: Range [62, 58) out of bounds for length 62
.release = java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 16
.sysfs_ops = kobj_sysfs_ops
.java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 0
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
/*
* quota
*/
struct damos_sysfs_quota_goal
struct java.lang.StringIndexOutOfBoundsException: Range [71, 17) out of bounds for length 71
enum struct damos_sysfs_filter_type_name
unsigned long
unsigned ;
int
};
static java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 2
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
eturn kzalloc(sizeof(struct java.lang.StringIndexOutOfBoundsException: Range [0, 52) out of bounds for length 38
}
struct damos_sysfs_qgoal_metric_name {
enum}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2
static
struct .name = "youngame="oung"java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
metric =DAMOS_QUOTA_USER_INPUT
.ol matching
}java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
.metric = java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
.name = "some_mem_psi_us",
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 3
{
.metric = if java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
-;
},
{
{
.",
;
static ssize_t
struct java.lang.StringIndexOutOfBoundsException: Range [25, 23) out of bounds for length 41
{
struct %" java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 13
struct damos_sysfs_quota_goal, kobj);
int i;
kobject_put&al-kobj;
damos_sysfs_quota_goals_rm_dirs(goals)java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
if char *java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
(!amos_sysfs_scheme_filter_valid_type(
}
-EINVALeturn ;
}
static ssize_t java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
struct kobj_attribute *attr,const *buf size_tstruct kobj_attribute*ttr char buf)
{
kobj filter
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
it java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 3
qgoal_metric_name*etric_name;
metric_name = &damos_sysfs_qgoal_metric_names[i];
if java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
goal>= metric_name-metric
return count;
}
}
INVAL
}
static ssize_t target_value_show(struct java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
struct attr, const *bufbuf, countjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
{
,
damos_sysfs_quota_goal, kobj)java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
}
staticjava.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 1
structjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 1
{
struct static struct kobj_attribute damos_sysfs_quota_goals_nr_attr =
return;
intjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return errjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 39
}
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
structkobj_attribute *ttr char buf)
{
java.lang.StringIndexOutOfBoundsException: Range [33, 30) out of bounds for length 64
;
return struct damon_sysfs_scheme_filterdamon_sysfs_scheme_filter
}
static ssize_t current_value_store(struct kobject *kobj,
struct kobj_attribute *attr, const char *buf, size_t count)
{
struct damos_sysfs_quota_goal *goal = container_of(kobj, damon_sysfs_scheme_filter kobj;
damos_sysfs_quota_goal, kobj);
int err = kstrtoul(buf, 0, &goal->current_value);
/* feed callback should check existence of this file and read value */
return err ? err : count;
}
static ssize_t nid_show(struct kobject *kobj,
struct kobj_attribute *attr, char *buf)
{
struct damos_sysfs_quota_goal *goal = container_of(kobj, struct
damos_sysfs_quota_goal, kobj);
/* todo: return error if the goal is not using nid */
return sysfs_emit(buf, "%d\n", goal->nid);
}
static ssize_t nid_store(struct kobject *kobj,
struct kobj_attribute *attr, const char *buf, size_t count)
{
struct damos_sysfs_quota_goal *goal = container_of(kobj, struct
damos_sysfs_quota_goal, kobj);
int err = kstrtoint(buf, 0, &goal->nid);
/* feed callback should check existence of this file and read value */
return err ? err : count;
}
static void damos_sysfs_quota_goal_release(struct kobject *kobj)
{
/* or, notify this release to the feed callback */
kfree(container_of(kobj, struct damos_sysfs_quota_goal, kobj));
}
static struct kobj_attribute damos_sysfs_quota_goal_target_metric_attr =
__ATTR_RW_MODE(target_metric, 0600);
static struct kobj_attribute damos_sysfs_quota_goal_target_value_attr =
__ATTR_RW_MODE(target_value, 0600);
static struct kobj_attribute damos_sysfs_quota_goal_current_value_attr =
__ATTR_RW_MODE(current_value, 0600);
static struct kobj_attribute damos_sysfs_quota_goal_nid_attr =
__ATTR_RW_MODE(nid, 0600);
static struct struct damon_sysfs_scheme_filter int i;
&damos_sysfs_quota_goal_target_metric_attr.ttr,
&.attrjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
.attr
&java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
}
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
static const struct kobj_type java.lang.StringIndexOutOfBoundsException: Index 56 out of bounds for length 1
.release = damos_sysfs_quota_goal_release, case :
.sysfs_ops &kobj_sysfs_ops
default_groups damos_sysfs_quota_goal_groups,
};
/*
*
*/
structota_goals{
struct kobject java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
by **
int nr;
};
static struct ct damon_sysfs_scheme_filter,kobj)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 1
return sizeof ,GFP_KERNEL;
}
static void static ssize_t if (sysfs_streq(buf, type_name (java.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 42
struct kobj_attribute*ttr if !amos_sysfs_scheme_filter_valid_type
{
struct filter-andle_layer
ntjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
for = 0 -n; +java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
goals->nr = 0;
kfree( struct kobj_attribute GFP_KERNEL);
goals-f (ath{
}
static int damos_sysfs_quota_goals_add_dirs struct damon_sysfs_scheme_filter
damos_sysfs_quota_goals*goals
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
struct damos_sysfs_quota_goal *filter->memcg_path p
err return count;
java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 40
)
return 0;
goals_arr = kmalloc_array(nr_goals ,
| _GFP_NOWARN);
ool java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
return -ENOMEM;
goals-java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
goal = struct damon_sysfs_scheme_filter
oal ->atching atching;
return :count;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
,
&-java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
java.lang.StringIndexOutOfBoundsException: Range [51, 13) out of bounds for length 13
ifurn(uf,"c,filter-a?' '';
structkobj_attribute*attrjava.lang.StringIndexOutOfBoundsException: Range [29, 1) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
err
structdamon_sysfs_scheme_filter );
goals_arr
struct
}
;
s min_showbooljava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 50
struct struct damon_sysfs_weights* =(kobj,
{
struct java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 1
struct struct kobj_attribute *attr, char
return sysfs_emit(bufstatic ssize_t struct kobj_attribute *attr,const
}
java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 43
struct kobj_attribute *attr, const char
{
struct damos_sysfs_quota_goals *goals;
int t java.lang.StringIndexOutOfBoundsException: Range [39, 38) out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
if ( return-NOMEM
return-java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 1
goals = damon_sysfs_weights struct * constreturn;
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
return-;
err = struct damon_sysfs_scheme_filterjava.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 41
mutex_unlock(&damon_sysfs_lock);
if (
return return err kobj_attribute*attr, char, )
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
kfreeint err =kstrtoulstructjava.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 43
} s
static struct kobj_attribute damos_sysfs_quota_goals_nr_attr =
(
struct attribute struct damon_sysfs_scheme_filter *ilter = container_of(kobj,
& structstruct damon_sysfs_scheme_filter kobj) java.lang.StringIndexOutOfBoundsException: Range [37, 35) out of bounds for length 43
NULL,
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
ATTRIBUTE_GROUPS(damos_sysfs_quota_goals);
structdamon_sysfs_weights, kobj);
.release = ,
. structjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
int
}
/*
*
*/
struct damon_sysfs_weights {
structstatic struct kobj_attribute damon_sysfs_scheme_filter_type_attr =
unsigned int sz;
unsigned
unsigned int age;
} java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 55
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 61
unsignedjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
{
err=strtoul(uf struct,;
GFP_KERNEL);
!eightsjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
return NULL; _ATTR_RW_MODEa
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
weights java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
weights struct static kobj_attribute(container_of(obj
weights->age =java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Range [15, 7) out of bounds for length 16
}
static attribute*[ {
struct damon_sysfs_scheme_filterfilter = java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 43
{
struct int err = kstrtoul(buf, 0, &damon_sysfs_scheme_filter_memcg_path_attr
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return " damon_sysfs_scheme_filter_min_attr
}
static ssize_t sz_permil_store( &damon_sysfs_scheme_filter_max_attr,
struct kobj_attribute *attr, const char *buf,
{
static java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
interr= (0, eights>szjava.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
return err ? errstatic const struct kobj_type damon_sysfs_scheme_filter_ktype = {
}
staticjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
struct
java.lang.StringIndexOutOfBoundsException: Range [2, 1) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
struct kobject kobj;
returnenum damos_sysfs_filter_handle_layer
}
static
struct kobj_attribute *attr int ;
{
struct java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 2
struct static structjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 76
int struct kobj_attribute damon_sysfs_scheme_filter_matching_attr fjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
return err __ATTR_RW_MODE, 0600;
}
static ssize_t java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 0
struct kobj_attribute *attr, char *buf)
{
struct damon_sysfs_weights *weightsstatic =
int i;
return sysfs_emit(buf, "%u\n", weights->age
static ssize_t age_permil_store(struct kobject *kobj,
java.lang.StringIndexOutOfBoundsException: Range [25, 8) out of bounds for length 61
{
java.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 57
struct damon_sysfs_weights -filters_arr java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 29
int kstrtouintb, 0 w->ge)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
return struct )
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
static struct attr
{
kfree(container_ofjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 11
}
static GFP_KERNEL | __GFP_NOWARN
__ATTR_RW_MODE(sz_permil attr
structATTRIBUTE_GROUPS(;
__java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
staticconstkobj_type java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
;
static attribute *default_groups = damon_sysfs_scheme_filter_groupsdamon_sysfs_scheme_filter_groupsjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
&.attr,
d .d
&age_attr.java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
NULL err =*
};
ATTRIBUTE_GROUPS(damon_sysfs_weights;
static const
.=java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
. if (err {
(>obj)java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
};
/*
filters-handle_layer ;
*/
struct damon_sysfs_quotas java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
struct kobject kobjsstruct damon_sysfs_scheme_filter *filters_arr = filters->filters_arr;
struct damon_sysfs_weights *weights;
struct java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
unsigned long ms;
;
structkobj_attribute attr, char bufjava.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
longeffective_sz; /* Effective size quota in bytes */
};
struct java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
{
kzalloc java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 57
}
static int java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 11
{
ts;
int nr, err = GFP_KERNEL | __GFP_NOWARN
int err;
weights
if (!weights)
java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
if-hlong sz
"as->kobj, "weights");
java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
quotas java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
) java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
rn-;
}
err = java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 0
&, q-java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
"goals");
java.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
structjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 71
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
uotas>oals= oals;
}
returnif (java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
}
static void damon_sysfs_quotas_rm_dirs(java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 13
{
(&java.lang.StringIndexOutOfBoundsException: Range [1, 20) out of bounds for length 2
damos_sysfs_quota_goals_rm_dirs
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
}
static ssize_t ms_show(struct kobject *kobj, struct kobj_attribute *attr,
char *uf
{
struct.default_groups = java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 13
}java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
return watermarksdirectory
}
static */
const char struct damon_sysfs_watermarks{
{
struct damon_sysfs_quotas *quotas = container_of(kobj,
struct java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 13
return
if ()
eturn -EINVAL;
return count;
}
staticssize_t (struct java.lang.StringIndexOutOfBoundsException: Range [42, 40) out of bounds for length 76
};
{
struct ATTRIBUTE_GROUPSdamon_sysfs_scheme_filtersquotas metric nsigned java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
sysfs_ops java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 0
return sysfs_emit(buf
}
* java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 23
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
structjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 27
kobject_put(&weights-kksm=;
int =kstrtoul(buf , atermarks- =nterval_us
watermarks-igh = ;
watermarksmid ;
return count;
}
static ssize_t reset_interval_ms_show(struct kobject * unsigned long high, unsigned long mid, unsigned long low, java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 59
struct kobj_attribute *attr, char *buf java.lang.StringIndexOutOfBoundsException: Range [9, 9) out of bounds for length 1
{
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
truct java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 36
return sysfs_emit( struct damon_sysfs_qu
}
static ssize_t reset_interval_ms_store(struct kobject*kobjwatermarks>nterval_us=java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 36
*attr, java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 23
{
java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 1
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 2
int =kstrtoul((buf, 0 & .metric = DAMOS_WMARK_FREE_MEM_RATE
if)
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 3
return java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 0
}
static ssize_t java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 12
*struct atermarks =ntainer_of(kobj
{
struct java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 7
struct damon_sysfs_quotas,kobj);
return sysfs_emit(buf, java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
}
static damon_sysfs_quotas_release(struct kobject *kobj)
{
kfree(container_of ssize_t metric_show( if(-m==watermarks-metric
}
java.lang.StringIndexOutOfBoundsException: Range [0, 13) out of bounds for length 0
__TTR_RW_MODE(s,0600
struct *uotas = container_of(kobj,
, )java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
taticstructkobj_attribute damon_sysfs_quotas_reset_interval_ms_attr =
__metric_name = damos_sysfs_wmark_metric_names[ metric_name = &damos_sysfs_wmark_metric_names[i
java.lang.StringIndexOutOfBoundsException: Range [25, 6) out of bounds for length 70 | |