Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F131872820
D4315.id10656.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4315.id10656.diff
View Options
Index: sys/cddl/dev/profile/profile.c
===================================================================
--- sys/cddl/dev/profile/profile.c
+++ sys/cddl/dev/profile/profile.c
@@ -50,6 +50,7 @@
#include <sys/proc.h>
#include <sys/selinfo.h>
#include <sys/smp.h>
+#include <sys/sysctl.h>
#include <sys/uio.h>
#include <sys/unistd.h>
#include <machine/cpu.h>
@@ -134,10 +135,7 @@
#endif
#ifdef __arm__
-/*
- * At least on ARMv7, this appears to work quite well.
- */
-#define PROF_ARTIFICIAL_FRAMES 10
+#define PROF_ARTIFICIAL_FRAMES 3
#endif
#ifdef __aarch64__
@@ -233,7 +231,12 @@
static struct cdev *profile_cdev;
static dtrace_provider_id_t profile_id;
static hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */
-static int profile_aframes = 0; /* override */
+static int profile_aframes = PROF_ARTIFICIAL_FRAMES;
+
+SYSCTL_DECL(_kern_dtrace);
+SYSCTL_NODE(_kern_dtrace, OID_AUTO, profile, CTLFLAG_RD, 0, "DTrace profile parameters");
+SYSCTL_UINT(_kern_dtrace_profile, OID_AUTO, aframes, CTLFLAG_RW, &profile_aframes,
+ 0, "Skipped frames for profile provider");
static sbintime_t
nsec_to_sbt(hrtime_t nsec)
@@ -352,7 +355,7 @@
prof->prof_kind = kind;
prof->prof_id = dtrace_probe_create(profile_id,
NULL, NULL, name,
- profile_aframes ? profile_aframes : PROF_ARTIFICIAL_FRAMES, prof);
+ profile_aframes, prof);
}
/*ARGSUSED*/
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 12, 9:04 PM (2 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23641067
Default Alt Text
D4315.id10656.diff (1 KB)
Attached To
Mode
D4315: artifical frame should be 3 in arm platform.
Attached
Detach File
Event Timeline
Log In to Comment