Skip to content

Commit 1c8ab68

Browse files
committed
Rate limit more messages seen while testing on Aurora
1 parent ba9c0cb commit 1c8ab68

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

kdreg2_context.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ int kdreg2_context_resize(struct kdreg2_context *context,
148148
int ret;
149149
size_t i, bad_index;
150150

151-
pr_info("resize to %zu entities", num_entities);
151+
pr_info_ratelimited("resize to %zu entities", num_entities);
152152

153153
/* The free list uses the data field in the monitoring_data
154154
* as an index. So we can only handle as many entities

kdreg2_file.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int kdreg2_open(struct inode *inode,
8282

8383
kdreg2_global_unlock();
8484

85-
pr_info("Instance opened.\n");
85+
pr_info_ratelimited("Instance opened.\n");
8686

8787
return 0;
8888

@@ -120,7 +120,7 @@ int kdreg2_release(struct inode *inode,
120120

121121
if (!file || !file->private_data) {
122122
kdreg2_global_unlock();
123-
pr_info("Instance closed, nothing to do.\n");
123+
pr_info_ratelimited("Instance closed, nothing to do.\n");
124124
return 0;
125125
}
126126

@@ -147,7 +147,7 @@ int kdreg2_release(struct inode *inode,
147147
}
148148

149149
module_put(THIS_MODULE);
150-
pr_info("Instance closed.\n");
150+
pr_info_ratelimited("Instance closed.\n");
151151

152152
return 0;
153153
}

kdreg2_priv.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ int kdreg2_detect_fork(struct kdreg2_context *context)
336336
current->mm, context->mm);
337337

338338
if (context->warn_on_fork_detected) {
339-
pr_warn("Fork() detected - monitoring not supported in child");
339+
pr_warn_ratelimited("Fork() detected - monitoring not supported in child");
340340
context->warn_on_fork_detected = false;
341341
}
342342

0 commit comments

Comments
 (0)