Page MenuHomeFreeBSD

D4315.id10655.diff
No OneTemporary

D4315.id10655.diff

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__
@@ -235,6 +233,11 @@
static hrtime_t profile_interval_min = NANOSEC / 5000; /* 5000 hz */
static int profile_aframes = 0; /* override */
+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)
{

File Metadata

Mime Type
text/plain
Expires
Thu, Sep 3, 3:41 PM (6 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38129163
Default Alt Text
D4315.id10655.diff (1 KB)

Event Timeline